Skip to content

Commit 42056e7

Browse files
committed
Update version of IBM DB2 docker image and jdbc driver
1 parent 60f8343 commit 42056e7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
<mysql-connector-j.version>9.1.0</mysql-connector-j.version>
124124
<mariadb-java-client.version>3.5.1</mariadb-java-client.version>
125125
<postgresql.version>42.7.4</postgresql.version>
126-
<db2.version>11.5.9.0</db2.version>
126+
<db2.version>12.1.0.0</db2.version>
127127
<oracle.version>19.24.0.0</oracle.version>
128128
<sqlserver.version>11.2.3.jre17</sqlserver.version>
129129
<jtds.version>1.3.1</jtds.version>

spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/Db2JobRepositoryIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2023 the original author or authors.
2+
* Copyright 2020-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@
5757
class Db2JobRepositoryIntegrationTests {
5858

5959
// TODO find the best way to externalize and manage image versions
60-
private static final DockerImageName DB2_IMAGE = DockerImageName.parse("ibmcom/db2:11.5.5.1");
60+
private static final DockerImageName DB2_IMAGE = DockerImageName.parse("icr.io/db2_community/db2:11.5.9.0");
6161

6262
@Container
6363
public static Db2Container db2 = new Db2Container(DB2_IMAGE).acceptLicense();

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/Db2PagingQueryProviderIntegrationTests.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 the original author or authors.
2+
* Copyright 2024-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,14 +32,15 @@
3232

3333
/**
3434
* @author Henning Pöttker
35+
* @author Mahmoud Ben Hassine
3536
*/
3637
@Testcontainers(disabledWithoutDocker = true)
3738
@SpringJUnitConfig
3839
@Sql(scripts = "query-provider-fixture.sql", executionPhase = BEFORE_TEST_CLASS)
3940
class Db2PagingQueryProviderIntegrationTests extends AbstractPagingQueryProviderIntegrationTests {
4041

4142
// TODO find the best way to externalize and manage image versions
42-
private static final DockerImageName DB2_IMAGE = DockerImageName.parse("ibmcom/db2:11.5.5.1");
43+
private static final DockerImageName DB2_IMAGE = DockerImageName.parse("icr.io/db2_community/db2:11.5.9.0");
4344

4445
@Container
4546
public static Db2Container db2 = new Db2Container(DB2_IMAGE).acceptLicense();

0 commit comments

Comments
 (0)