Skip to content

Commit 712f4cd

Browse files
committed
[#1847] Upgrade Db2 for testing to 11.5.9.0
The repository name is now `icr.io/db2_community/db2`
1 parent a609148 commit 712f4cd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

hibernate-reactive-core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies {
5757
testRuntimeOnly "com.mysql:mysql-connector-j:8.0.33"
5858

5959
// JDBC driver for Db2 server, for testing
60-
testRuntimeOnly "com.ibm.db2:jcc:11.5.8.0"
60+
testRuntimeOnly "com.ibm.db2:jcc:11.5.9.0"
6161

6262
// EHCache
6363
testRuntimeOnly ("org.ehcache:ehcache:3.10.0-alpha0") {

hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/DB2Database.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class DB2Database implements TestableDatabase {
8282
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
8383
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
8484
*/
85-
static final Db2Container db2 = new Db2Container( imageName( "docker.io", "ibmcom/db2", "11.5.8.0" ) )
85+
static final Db2Container db2 = new Db2Container( imageName( "docker.io", "icr.io/db2_community/db2", "11.5.9.0" ) )
8686
.withUsername( DatabaseConfiguration.USERNAME )
8787
.withPassword( DatabaseConfiguration.PASSWORD )
8888
.withDatabaseName( DatabaseConfiguration.DB_NAME )

podman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ and schema to run the tests:
157157
podman run --rm -e LICENSE=accept --privileged=true --group-add keep-groups \
158158
--name HibernateTestingDB2 -e DBNAME=hreact -e DB2INSTANCE=hreact \
159159
-e DB2INST1_PASSWORD=hreact -e PERSISTENT_HOME=false -e ARCHIVE_LOGS=false \
160-
-e AUTOCONFIG=false -p 50000:50000 docker.io/ibmcom/db2:11.5.8.0
160+
-e AUTOCONFIG=false -p 50000:50000 docker.io/icr.io/db2_community/db2:11.5.9.0
161161
```
162162

163163
When the database has started, you can run the tests on Db2 with:

tooling/jbang/Db2ReactiveTest.java.qute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class {baseName} {
6565
}
6666

6767
@ClassRule
68-
public final static Db2Container database = new Db2Container( imageName( "docker.io", "ibmcom/db2", "11.5.8.0" ) )
68+
public final static Db2Container database = new Db2Container( imageName( "docker.io", "icr.io/db2_community/db2", "11.5.9.0" ) )
6969
.acceptLicense();
7070

7171
private Mutiny.SessionFactory sessionFactory;

tooling/jbang/ReactiveTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public String toString() {
230230
enum Database {
231231
POSTGRESQL( () -> new PostgreSQLContainer( "postgres:16.1" ) ),
232232
MYSQL( () -> new MySQLContainer( "mysql:8.3.0" ) ),
233-
DB2( () -> new Db2Container( "docker.io/ibmcom/db2:11.5.8.0" ).acceptLicense() ),
233+
DB2( () -> new Db2Container( "docker.io/icr.io/db2_community/db2:11.5.9.0" ).acceptLicense() ),
234234
MARIADB( () -> new MariaDBContainer( "mariadb:10.11.3" ) ),
235235
COCKROACHDB( () -> new CockroachContainer( "cockroachdb/cockroach:v22.2.10" ) );
236236

0 commit comments

Comments
 (0)