Skip to content
Closed
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 @@ -27,7 +27,7 @@ public class Db2Container extends JdbcDatabaseContainer<Db2Container> {
private String password = "foobar1234";

/**
* @deprecated use {@link Db2Container(DockerImageName)} instead
* @deprecated use {@link Db2Container#Db2Container(DockerImageName)} instead
*/
@Deprecated
public Db2Container() {
Expand All @@ -43,7 +43,6 @@ public Db2Container(final DockerImageName dockerImageName) {

dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME);

withPrivilegedMode(true);
this.waitStrategy = new LogMessageWaitStrategy()
.withRegEx(".*Setup has completed\\..*")
.withStartupTimeout(Duration.of(10, ChronoUnit.MINUTES));
Expand Down Expand Up @@ -78,6 +77,8 @@ protected void configure() {
/**
* Accepts the license for the DB2 container by setting the LICENSE=accept
* variable as described at <a href="https://hub.docker.com/r/ibmcom/db2">https://hub.docker.com/r/ibmcom/db2</a>
*
* @return self
*/
public Db2Container acceptLicense() {
addEnv("LICENSE", "accept");
Expand Down