File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ Or you can run it from Maven directly using the Spring Boot Maven plugin. If you
2828
2929> NOTE: If you prefer to use Gradle, you can build the app using ` ./gradlew build ` and look for the jar file in ` build/libs ` .
3030
31+ ## Building a Container
32+
33+ There is no ` Dockerfile ` in this project. You can build a container image (if you have a docker daemon) using the Spring Boot build plugin:
34+
35+ ```
36+ ./mvnw spring-boot:build-image
37+ ```
38+
3139## In case you find a bug/suggested improvement for Spring Petclinic
3240Our issue tracker is available here: https://github.com/spring-projects/spring-petclinic/issues
3341
@@ -44,6 +52,11 @@ You could start MySQL or PostgreSQL locally with whatever installer works for yo
4452
4553```
4654docker run -e MYSQL_USER=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:5.7.8
55+ ```
56+
57+ or
58+
59+ ```
4760docker run -e POSTGRES_USER=petclinic -e POSTGRES_PASSWORD=petclinic -e POSTGRES_DB=petclinic -p 5432:5432 postgres:14.1
4861```
4962
You can’t perform that action at this time.
0 commit comments