{"id":17928160,"url":"https://github.com/kostis-codefresh/sample-java-project","last_synced_at":"2025-04-03T09:43:42.307Z","repository":{"id":102112569,"uuid":"609150379","full_name":"kostis-codefresh/sample-java-project","owner":"kostis-codefresh","description":"Template project for Java apps","archived":false,"fork":false,"pushed_at":"2023-03-03T15:05:54.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T23:15:36.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"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/kostis-codefresh.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-03T13:36:32.000Z","updated_at":"2023-03-03T13:59:30.000Z","dependencies_parsed_at":"2023-03-13T15:24:12.003Z","dependency_job_id":null,"html_url":"https://github.com/kostis-codefresh/sample-java-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostis-codefresh%2Fsample-java-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostis-codefresh%2Fsample-java-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostis-codefresh%2Fsample-java-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostis-codefresh%2Fsample-java-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kostis-codefresh","download_url":"https://codeload.github.com/kostis-codefresh/sample-java-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981151,"owners_count":20863825,"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","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":[],"created_at":"2024-10-28T21:01:46.313Z","updated_at":"2025-04-03T09:43:42.288Z","avatar_url":"https://github.com/kostis-codefresh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerized Spring boot 2 application\n\n![Docker plus Spring Boot plus Codefresh](docker-spring-boot-codefresh.jpg)\n\nThis is an example Java application that uses Spring Boot 2, Maven and Docker.\nIt is compiled using Codefresh.\n\nIf you are looking for Gradle, then see this [example](https://github.com/codefresh-contrib/gradle-sample-app)\n\n\n## Instructions\n\nTo compile (also runs unit tests)\n\n```\nmvn package\n```\n\n## To run the webapp manually\n\n```\nmvn spring-boot:run\n```\n\n....and navigate your browser to  http://localhost:8080/\n\n## To run integration tests\n\n```\nmvn spring-boot:run\nmvn verify\n```\n\n## Create a multi-stage docker image\n\nTo compile and package using Docker multi-stage builds\n\n```bash\ndocker build . -t my-spring-boot-sample\n```\n\n\n## To run the docker image\n\n```\ndocker run -p 8080:8080 my-spring-boot-sample\n```\n\nThe Dockerfile also has a healthcheck\n\n## To use this project in Codefresh \n\n\nThere is also a [codefresh.yml](codefresh.yml) for easy usage with the [Codefresh](codefresh.io) CI/CD platform.\n\n\nMore details can be found in [Codefresh documentation](https://codefresh.io/docs/docs/learn-by-example/java/spring-boot-2/)\n\n\nEnjoy!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkostis-codefresh%2Fsample-java-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkostis-codefresh%2Fsample-java-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkostis-codefresh%2Fsample-java-project/lists"}