From 4145d52f8eeef12a9a42392b0a7e9df92b387929 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Mon, 13 Mar 2023 16:26:49 +0000 Subject: [PATCH] Update DB2 container version and instructions --- .../org/hibernate/reactive/containers/DB2Database.java | 2 +- podman.md | 8 ++++---- tooling/jbang/Db2ReactiveTest.java.qute | 2 +- tooling/jbang/ReactiveTest.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/DB2Database.java b/hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/DB2Database.java index 6407d77fe..f0607798b 100644 --- a/hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/DB2Database.java +++ b/hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/DB2Database.java @@ -79,7 +79,7 @@ class DB2Database implements TestableDatabase { * TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located * at `$HOME/.testcontainers.properties` (create the file if it does not exist). */ - static final Db2Container db2 = new Db2Container( imageName( "docker.io", "ibmcom/db2", "11.5.7.0a" ) ) + static final Db2Container db2 = new Db2Container( imageName( "docker.io", "ibmcom/db2", "11.5.8.0" ) ) .withUsername( DatabaseConfiguration.USERNAME ) .withPassword( DatabaseConfiguration.PASSWORD ) .withDatabaseName( DatabaseConfiguration.DB_NAME ) diff --git a/podman.md b/podman.md index eb4dc074b..35d07ee68 100644 --- a/podman.md +++ b/podman.md @@ -154,10 +154,10 @@ and schema to run the tests: [db2]:https://www.ibm.com/analytics/db2 ``` -podman run --rm -e LICENSE=accept --privileged=true --name HibernateTestingDB2 \ - -e DBNAME=hreact -e DB2INSTANCE=hreact -e DB2INST1_PASSWORD=hreact \ - -e PERSISTENT_HOME=false -e ARCHIVE_LOGS=false -e AUTOCONFIG=false \ - -p 50000:50000 docker.io/ibmcom/db2:11.5.7.0a +podman run --rm -e LICENSE=accept --privileged=true --group-add keep-groups \ + --name HibernateTestingDB2 -e DBNAME=hreact -e DB2INSTANCE=hreact \ + -e DB2INST1_PASSWORD=hreact -e PERSISTENT_HOME=false -e ARCHIVE_LOGS=false \ + -e AUTOCONFIG=false -p 50000:50000 docker.io/ibmcom/db2:11.5.8.0 ``` When the database has started, you can run the tests on Db2 with: diff --git a/tooling/jbang/Db2ReactiveTest.java.qute b/tooling/jbang/Db2ReactiveTest.java.qute index 4fd519ee6..6a890f421 100755 --- a/tooling/jbang/Db2ReactiveTest.java.qute +++ b/tooling/jbang/Db2ReactiveTest.java.qute @@ -65,7 +65,7 @@ public class {baseName} { } @ClassRule - public final static Db2Container database = new Db2Container( imageName( "docker.io", "ibmcom/db2", "11.5.7.0a" ) ) + public final static Db2Container database = new Db2Container( imageName( "docker.io", "ibmcom/db2", "11.5.8.0" ) ) .acceptLicense(); private Mutiny.SessionFactory sessionFactory; diff --git a/tooling/jbang/ReactiveTest.java b/tooling/jbang/ReactiveTest.java index f2d1bdb89..44aa875cd 100755 --- a/tooling/jbang/ReactiveTest.java +++ b/tooling/jbang/ReactiveTest.java @@ -230,7 +230,7 @@ public String toString() { enum Database { POSTGRESQL( () -> new PostgreSQLContainer( "postgres:14" ) ), MYSQL( () -> new MySQLContainer( "mysql:8.0.31" ) ), - DB2( () -> new Db2Container( "docker.io/ibmcom/db2:11.5.7.0a" ).acceptLicense() ), + DB2( () -> new Db2Container( "docker.io/ibmcom/db2:11.5.8.0" ).acceptLicense() ), MARIADB( () -> new MariaDBContainer( "mariadb:10.9.3" ) ), COCKROACHDB( () -> new CockroachContainer( "cockroachdb/cockroach:v22.1.9" ) );