Skip to content

Commit edf4db2

Browse files
patbaumgartnerdsyer
authored andcommitted
Update MySQL and PostgreSQL Docker images to latest versions
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
1 parent 7ba7f84 commit edf4db2

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ A similar setup is provided for MySQL and PostgreSQL if a persistent database co
6363
You 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

6969
or
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

7575
Further documentation is provided for [MySQL](https://github.com/spring-projects/spring-petclinic/blob/main/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt)

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
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:

k8s/db.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
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

src/test/java/org/springframework/samples/petclinic/MySqlIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/test/java/org/springframework/samples/petclinic/MysqlTestApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)