{"id":22016398,"url":"https://github.com/pravsingh/springboot-dockerized","last_synced_at":"2025-05-07T01:24:43.101Z","repository":{"id":148311425,"uuid":"101516880","full_name":"pravsingh/springboot-dockerized","owner":"pravsingh","description":"Swagger enabled sample SpringBoot Microservice using Docker plugin to create image, push and pull from DockerHub","archived":false,"fork":false,"pushed_at":"2018-07-10T04:21:49.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T05:01:42.213Z","etag":null,"topics":["docker","docker-plugin","dockerhub","java","spring","spring-boot","springboot","swagger"],"latest_commit_sha":null,"homepage":"http://www.designingmicroservices.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pravsingh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-08-26T22:35:57.000Z","updated_at":"2018-07-10T04:21:51.000Z","dependencies_parsed_at":"2023-05-19T17:45:22.107Z","dependency_job_id":null,"html_url":"https://github.com/pravsingh/springboot-dockerized","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pravsingh%2Fspringboot-dockerized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pravsingh%2Fspringboot-dockerized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pravsingh%2Fspringboot-dockerized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pravsingh%2Fspringboot-dockerized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pravsingh","download_url":"https://codeload.github.com/pravsingh/springboot-dockerized/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252794615,"owners_count":21805219,"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":["docker","docker-plugin","dockerhub","java","spring","spring-boot","springboot","swagger"],"created_at":"2024-11-30T04:34:46.963Z","updated_at":"2025-05-07T01:24:43.093Z","avatar_url":"https://github.com/pravsingh.png","language":"Java","readme":"# Introduction\nA Sample Application based on Spring Boot which uses Docker plugin to \nbuild the image of the application.\nThis document lists out the steps to build, push the image and use it to launch the\nserver inside the container.\n\n\n## create account on DockerHub\ncreate account at https://hub.docker.com\n\n## initialize local docker to connect to your account\ndocker login\n\n## ensure code builds locally\nmvn clean install\n\n\n## create image based on the Dockerfile\nmvn install -DskipTests dockerfile:build\n\n### verify the image\ndocker images\n\n## push the image to DockerHub\nmvn install -DskipTests dockerfile:push\n\n### verify if image is published\nimage pushed at https://hub.docker.com/r/pravsingh/springboot-dockerized/\n\n## remove local image\ndocker rmi pravsingh/springboot-dockerized\n\n## pull from DockerHub\ndocker pull pravsingh/springboot-dockerized\n\n## run the app\ndocker run -p 8080:8080 -t pravsingh/springboot-dockerized\n\n## run the app with specific profile\ndocker run -e \"SPRING_PROFILES_ACTIVE=dev\" -p 8080:8080 -t pravsingh/springboot-dockerized\n\n# run the app using spring-boot-maven-plugin\nmvn spring-boot:run\n\n# runt the app using jar\n./start.sh\n\n## access the application API\nhttp://localhost:8080/health\n\n## Swagger\nhttp://localhost:8080/swagger-ui.html\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpravsingh%2Fspringboot-dockerized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpravsingh%2Fspringboot-dockerized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpravsingh%2Fspringboot-dockerized/lists"}