{"id":23826158,"url":"https://github.com/appuio/springdemo","last_synced_at":"2025-09-07T08:31:42.020Z","repository":{"id":70136908,"uuid":"77739862","full_name":"appuio/springdemo","owner":"appuio","description":"Minimal Java Spring Boot example with documentation how to deploy to OpenShift/appuio.ch","archived":false,"fork":false,"pushed_at":"2023-12-15T14:27:43.000Z","size":63,"stargazers_count":0,"open_issues_count":1,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T22:04:44.011Z","etag":null,"topics":["appuio","openshift","spring","spring-demo"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appuio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-31T12:43:30.000Z","updated_at":"2018-06-26T10:27:24.000Z","dependencies_parsed_at":"2023-02-23T05:15:11.995Z","dependency_job_id":null,"html_url":"https://github.com/appuio/springdemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/appuio/springdemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fspringdemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fspringdemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fspringdemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fspringdemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appuio","download_url":"https://codeload.github.com/appuio/springdemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appuio%2Fspringdemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274011521,"owners_count":25207080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appuio","openshift","spring","spring-demo"],"created_at":"2025-01-02T12:16:19.192Z","updated_at":"2025-09-07T08:31:41.755Z","avatar_url":"https://github.com/appuio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Spring APPUiO demo\n\nThis repo contains an empty Java Spring Boot project created by https://start.spring.io/ with the Spring Boot Web MVC and Spring Boot Actuator modules.\n\nI added a simple Controller Class (src/main/java/com/arska/SpringdemoController.java) to output \"Hello!\" when accessing the application root instead of an error.\n\nThe build configuration in pom.xml outputs a WAR called ROOT.war that will be automatically deployed by the OpenShift 3 Source-to-Image (s2i) process for JBoss.\nYou can run this on OpenShift (e.g. http://appuio.ch) using the Web-GUI (\"Add to project\", select \"JBoss Web Server 3.1 Apache Tomcat 8\" Template, enter a name (e.g. springdemo) and GIT URL (e.g. https://github.com/appuio/springdemo.git) and \"create\") or deploy via the CLI:\n```\noc new-app openshift/jboss-webserver31-tomcat8-openshift:1.1~https://github.com/appuio/springdemo.git\noc patch bc/springdemo -p '{\"spec\":{\"resources\":{\"limits\":{\"memory\":\"500Mi\"}}}}'\noc patch dc/springdemo -p '{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"springdemo\",\"resources\":{\"limits\":{\"memory\": \"500Mi\"}}}]}}}}'\noc cancel-build springdemo-1\noc start-build springdemo\noc expose service springdemo\n```\n\nAs you can see we need to adjust the RAM ressource limit for the build and deployment as the default 256MB is too tight for JBoss.\n\nThis repo also contains an openshift template springdemo-template.json that you can use to instantiate the project including proper limits and health checks, either manually though copy-pasting it to the Web-GUI (\"Add to project\", \"Import YAML / JSON\") or through the CLI:\n```\noc new-app -f https://raw.githubusercontent.com/appuio/springdemo/master/springdemo-template.json -p APPNAME=springdemo\n```\n\nNote that due to a race condition when instantiating the template (https://github.com/openshift/origin/issues/4518) the first build run might fail at pushing the resuling container (\"Error pushing to registry: Authentication is required\"), just start a new build in the Web-GUI oder CLI (oc new-build springdemo).\n\nWhen opening the app URL you should see \"Hello!\".\n\nYou can check out the healthcheck-page at /actuator/health\n\nYou can clean everything up with\n```\noc delete all -l app=springdemo\n```\n\nFor more information about templates: see https://docs.openshift.com/container-platform/latest/dev_guide/templates.html\n\nYou can also build/run this example locally using docker:\n```\ndocker build -t springdemo .\ndocker run -p 8080:8080 springdemo\n```\nThe application is then accessible at http://127.0.0.1:8080/\n\nAnd you can of course also use the Docker builder on OpenShift:\n```\noc new-app --strategy=docker https://github.com/appuio/springdemo.git\noc expose service springdemo\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappuio%2Fspringdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappuio%2Fspringdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappuio%2Fspringdemo/lists"}