File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
src/test/java/org/springframework/samples/petclinic Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ A similar setup is provided for MySQL and PostgreSQL if a persistent database co
6363You can start MySQL or PostgreSQL locally with whatever installer works for your OS or use docker:
6464
6565``` bash
66- docker run -e MYSQL_USER=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:9.5
66+ docker run -e MYSQL_USER=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:9.6
6767```
6868
6969or
7070
7171``` bash
72- docker run -e POSTGRES_USER=petclinic -e POSTGRES_PASSWORD=petclinic -e POSTGRES_DB=petclinic -p 5432:5432 postgres:18.1
72+ docker run -e POSTGRES_USER=petclinic -e POSTGRES_PASSWORD=petclinic -e POSTGRES_DB=petclinic -p 5432:5432 postgres:18.3
7373```
7474
7575Further documentation is provided for [ MySQL] ( https://github.com/spring-projects/spring-petclinic/blob/main/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt )
Original file line number Diff line number Diff line change 11services :
22 mysql :
3- image : mysql:9.5
3+ image : mysql:9.6
44 ports :
55 - " 3306:3306"
66 environment :
@@ -12,7 +12,7 @@ services:
1212 volumes :
1313 - " ./conf.d:/etc/mysql/conf.d:ro"
1414 postgres :
15- image : postgres:18.1
15+ image : postgres:18.3
1616 ports :
1717 - " 5432:5432"
1818 environment :
Original file line number Diff line number Diff line change 4141 app : demo-db
4242 spec :
4343 containers :
44- - image : postgres:18.1
44+ - image : postgres:18.3
4545 name : postgresql
4646 env :
4747 - name : POSTGRES_USER
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class MySqlIntegrationTests {
4747
4848 @ ServiceConnection
4949 @ Container
50- static MySQLContainer container = new MySQLContainer (DockerImageName .parse ("mysql:9.5 " ));
50+ static MySQLContainer container = new MySQLContainer (DockerImageName .parse ("mysql:9.6 " ));
5151
5252 @ LocalServerPort
5353 int port ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public class MysqlTestApplication {
3636 @ Profile ("mysql" )
3737 @ Bean
3838 static MySQLContainer container () {
39- return new MySQLContainer (DockerImageName .parse ("mysql:9.5 " ));
39+ return new MySQLContainer (DockerImageName .parse ("mysql:9.6 " ));
4040 }
4141
4242 public static void main (String [] args ) {
You can’t perform that action at this time.
0 commit comments