Skip to content

Commit

Permalink
change to healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAure committed Jul 30, 2020
1 parent 7110eb2 commit 707de29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public OracleContainer(Future<String> dockerImageName) {
}

private void preconfigure() {
this.waitStrategy = Wait.forLogMessage(".*DATABASE IS READY TO USE!.*", 1)
this.waitStrategy = Wait.forHealthcheck()
.withStartupTimeout(Duration.of(DEFAULT_STARTUP_TIMEOUT_SECONDS, SECONDS));
withConnectTimeoutSeconds(DEFAULT_CONNECT_TIMEOUT_SECONDS);
addExposedPorts(ORACLE_PORT, APEX_HTTP_PORT, OEM_EXPRESS_PORT);
Expand Down

0 comments on commit 707de29

Please sign in to comment.