Skip to content

Commit 9cb8dde

Browse files
author
Dave Syer
authored
Add section on building a container
1 parent bdcaa85 commit 9cb8dde

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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
3240
Our 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
```
4654
docker 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+
```
4760
docker run -e POSTGRES_USER=petclinic -e POSTGRES_PASSWORD=petclinic -e POSTGRES_DB=petclinic -p 5432:5432 postgres:14.1
4861
```
4962

0 commit comments

Comments
 (0)