Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DB2 container version and instructions #1503

Merged
merged 1 commit into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
8 changes: 4 additions & 4 deletions podman.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tooling/jbang/Db2ReactiveTest.java.qute
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tooling/jbang/ReactiveTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) );

Expand Down