Spring Boot version of the Spring Petclinic application
500K+
Based on the official OpenJDK Alpine image, this docker image runs the Spring Boot version of the Petclinic application. The Petclinic source code and the Docker file live here: (https://github.com/spring-petclinic/spring-petclinic-angular1)
Spring Boot supports executable JAR file and embedded Tomcat. This image includes the war built by Maven and runs the JAR with the OpenJDK JRE. The persistance layer relies on the embedded HSQL database.
Start the web application:
docker run -e "SPRING_PROFILES_ACTIVE=prod" -p 8080:8080 -t --name springboot-petclinic arey/springboot-petclinic
At this point go to http://DOCKER_HOST:8080/ from the docker host machine to interact with this webapp.
Stop the application:
docker stop springboot-petclinic
This image has been built and pushed with the Docker Maven Plugin.
Build the image:
git clone https://github.com/spring-projects/spring-petclinic
cd spring-petclinic
git checkout angularjs
mvn clean install
cd spring-petclinic-server
mvn docker:build
Build then push the image:
Edit the pom.xml and change the docker.image.prefix property.
mvn docker:build -DpushImageTag
Content type
Image
Digest
Size
146.6 MB
Last updated
over 7 years ago
docker pull arey/springboot-petclinic