Up startup timeouts on containers.

This commit is contained in:
Sam Rose 2024-11-07 15:37:22 +00:00
parent fab9409246
commit 36502b8410
No known key found for this signature in database
6 changed files with 10 additions and 6 deletions

View File

@ -32,7 +32,7 @@ export async function getDatasource(): Promise<Datasource> {
.withExposedPorts(3306)
.withTmpFs({ "/var/lib/mysql": "rw" })
.withEnvironment({ MARIADB_ROOT_PASSWORD: "password" })
.withWaitStrategy(new MariaDBWaitStrategy())
.withWaitStrategy(new MariaDBWaitStrategy().withStartupTimeout(20000))
)
}

View File

@ -18,7 +18,7 @@ export async function getDatasource(): Promise<Datasource> {
.withWaitStrategy(
Wait.forSuccessfulCommand(
`mongosh --eval "db.version()"`
).withStartupTimeout(10000)
).withStartupTimeout(20000)
)
)
}

View File

@ -25,7 +25,7 @@ export async function getDatasource(): Promise<Datasource> {
.withWaitStrategy(
Wait.forSuccessfulCommand(
"/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Password_123 -q 'SELECT 1'"
)
).withStartupTimeout(20000)
)
)
}

View File

@ -35,7 +35,7 @@ export async function getDatasource(): Promise<Datasource> {
.withExposedPorts(3306)
.withEnvironment({ MYSQL_ROOT_PASSWORD: "password" })
.withTmpFs({ "/var/lib/mysql": "rw" })
.withWaitStrategy(new MySQLWaitStrategy().withStartupTimeout(10000))
.withWaitStrategy(new MySQLWaitStrategy().withStartupTimeout(20000))
)
}

View File

@ -26,7 +26,11 @@ export async function getDatasource(): Promise<Datasource> {
.withTmpFs({
"/opt/oracle/oradata/FREEPDB1": "",
})
.withWaitStrategy(Wait.forLogMessage("DATABASE IS READY TO USE!"))
.withWaitStrategy(
Wait.forLogMessage("DATABASE IS READY TO USE!").withStartupTimeout(
20000
)
)
)
}

View File

@ -17,7 +17,7 @@ export async function getDatasource(): Promise<Datasource> {
.withWaitStrategy(
Wait.forSuccessfulCommand(
"pg_isready -h localhost -p 5432"
).withStartupTimeout(10000)
).withStartupTimeout(20000)
)
)
}