File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1616package io .flamingock .community .sql ;
1717
1818import org .testcontainers .containers .JdbcDatabaseContainer ;
19+ import org .testcontainers .containers .wait .strategy .Wait ;
1920import org .testcontainers .utility .DockerImageName ;
2021
22+ import java .time .Duration ;
23+
2124public class InformixContainer extends JdbcDatabaseContainer <InformixContainer > {
2225
2326 private static final String IMAGE = "icr.io/informix/informix-developer-database" ;
@@ -40,6 +43,12 @@ public InformixContainer(String dockerImageName) {
4043 "onmode -wf USER_THREADS=100 && " +
4144 "onspaces -c -S sbspace1 -p /opt/ibm/data/sbspace1 -o 0 -s 100000 && " +
4245 "tail -f /dev/null" );
46+ withStartupTimeout (Duration .ofMinutes (5 ));
47+ // Add health check
48+ waitingFor (Wait .forLogMessage (".*Informix Dynamic Server Version.*\\ n" , 1 )
49+ .withStartupTimeout (Duration .ofMinutes (5 )));
50+ // Set shared memory for CI environments (avoid permission issues)
51+ withSharedMemorySize (256 * 1024 * 1024L ); // 256MB
4352 }
4453
4554 @ Override
You can’t perform that action at this time.
0 commit comments