We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Oracle Free
1.19.7
Yes
Windows
x86
Client: Cloud integration: v1.0.35-desktop+001 Version: 24.0.5 API version: 1.43 Go version: go1.20.6 Git commit: ced0996 Built: Fri Jul 21 20:36:24 2023 OS/Arch: windows/amd64 Context: default Server: Docker Desktop 4.22.0 (117440) Engine: Version: 24.0.5 API version: 1.43 (minimum version 1.12) Go version: go1.20.6 Git commit: a61e2b4 Built: Fri Jul 21 20:35:45 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.21 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc: Version: 1.1.7 GitCommit: v1.1.7-0-g860f061 docker-init: Version: 0.19.0 GitCommit: de40ad0
With OracleContainer (both oracle-free and oracle-xe) the default startup time is 60 seconds, which is not enough in some cases.
OracleContainer
Configuring the container with withStartupTimeoutSeconds(180) still leads to an startup timeout after 60 seconds:
withStartupTimeoutSeconds(180)
@Container private static final OracleContainer oracle = new OracleContainer("gvenzl/oracle-free:slim-faststart") .withDatabaseName("testDB") .withUsername("testUser") .withPassword("testPassword") .withStartupTimeoutSeconds(180);
Startup log:
2024-04-30 08:53:46.290 INFO --- [ main] tc.gvenzl/oracle-free:slim-faststart : Creating container for image: gvenzl/oracle-free:slim-faststart 2024-04-30 08:53:46.441 INFO --- [ main] tc.gvenzl/oracle-free:slim-faststart : Container gvenzl/oracle-free:slim-faststart is starting: a81f38a6d5ae6f76b5e54179f07a55f4d6982374b2b5a2bf1a9921501a26176f 2024-04-30 08:54:46.965 ERROR --- [ main] tc.gvenzl/oracle-free:slim-faststart : Could not start container org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output matching '.*DATABASE IS READY TO USE!.*\s'
However, if I use withStartupTimeout(Duration.ofSeconds(180)) the startup timeout is overwritten correctly:
withStartupTimeout(Duration.ofSeconds(180))
@Container private static final OracleContainer oracle = new OracleContainer("gvenzl/oracle-free:slim-faststart") .withDatabaseName("testDB") .withUsername("testUser") .withPassword("testPassword") .withStartupTimeout(Duration.ofSeconds(180));
2024-04-30 08:56:04.757 INFO --- [ main] tc.gvenzl/oracle-free:slim-faststart : Creating container for image: gvenzl/oracle-free:slim-faststart 2024-04-30 08:56:04.865 INFO --- [ main] tc.gvenzl/oracle-free:slim-faststart : Container gvenzl/oracle-free:slim-faststart is starting: f508df5cff9fd39a341708d1e2738030ae5b6adf7c2aa75bdd1515dcdfc662f5 2024-04-30 08:58:22.055 INFO --- [ main] tc.gvenzl/oracle-free:slim-faststart : Container gvenzl/oracle-free:slim-faststart started in PT2M17.2976617S 2024-04-30 08:58:22.056 INFO --- [ main] tc.gvenzl/oracle-free:slim-faststart : Container is started (JDBC URL: jdbc:oracle:thin:@localhost:65218/testDB)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Module
Oracle Free
Testcontainers version
1.19.7
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host Arch
x86
Docker version
Client: Cloud integration: v1.0.35-desktop+001 Version: 24.0.5 API version: 1.43 Go version: go1.20.6 Git commit: ced0996 Built: Fri Jul 21 20:36:24 2023 OS/Arch: windows/amd64 Context: default Server: Docker Desktop 4.22.0 (117440) Engine: Version: 24.0.5 API version: 1.43 (minimum version 1.12) Go version: go1.20.6 Git commit: a61e2b4 Built: Fri Jul 21 20:35:45 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.21 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc: Version: 1.1.7 GitCommit: v1.1.7-0-g860f061 docker-init: Version: 0.19.0 GitCommit: de40ad0
What happened?
With
OracleContainer
(both oracle-free and oracle-xe) the default startup time is 60 seconds, which is not enough in some cases.Configuring the container with
withStartupTimeoutSeconds(180)
still leads to an startup timeout after 60 seconds:Startup log:
However, if I use
withStartupTimeout(Duration.ofSeconds(180))
the startup timeout is overwritten correctly:Relevant log output
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: