See what difference tmpfs mounts make on the data directories of each DB.
This commit is contained in:
parent
63f4bbdbd5
commit
3b982dc21e
|
@ -62,6 +62,7 @@ export default async function setup() {
|
|||
},
|
||||
])
|
||||
.withLabels({ "com.budibase": "true" })
|
||||
.withTmpFs({ "/data": "rw" })
|
||||
.withReuse()
|
||||
.withWaitStrategy(
|
||||
Wait.forSuccessfulCommand(
|
||||
|
@ -72,6 +73,7 @@ export default async function setup() {
|
|||
const minio = new GenericContainer("minio/minio")
|
||||
.withExposedPorts(9000)
|
||||
.withCommand(["server", "/data"])
|
||||
.withTmpFs({ "/data": "rw" })
|
||||
.withEnvironment({
|
||||
MINIO_ACCESS_KEY: "budibase",
|
||||
MINIO_SECRET_KEY: "budibase",
|
||||
|
|
|
@ -30,6 +30,7 @@ export async function getDatasource(): Promise<Datasource> {
|
|||
ports = startContainer(
|
||||
new GenericContainer(MARIADB_IMAGE)
|
||||
.withExposedPorts(3306)
|
||||
.withTmpFs({ "/var/lib/mysql": "rw" })
|
||||
.withEnvironment({ MARIADB_ROOT_PASSWORD: "password" })
|
||||
.withWaitStrategy(new MariaDBWaitStrategy())
|
||||
)
|
||||
|
|
|
@ -21,6 +21,7 @@ export async function getDatasource(): Promise<Datasource> {
|
|||
// version in production.
|
||||
MSSQL_PID: "Developer",
|
||||
})
|
||||
.withTmpFs({ "/var/opt/mssql": "rw" })
|
||||
.withWaitStrategy(
|
||||
Wait.forSuccessfulCommand(
|
||||
"/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Password_123 -q 'SELECT 1'"
|
||||
|
|
|
@ -34,6 +34,7 @@ export async function getDatasource(): Promise<Datasource> {
|
|||
new GenericContainer(MYSQL_IMAGE)
|
||||
.withExposedPorts(3306)
|
||||
.withEnvironment({ MYSQL_ROOT_PASSWORD: "password" })
|
||||
.withTmpFs({ "/var/lib/mysql": "rw" })
|
||||
.withWaitStrategy(new MySQLWaitStrategy().withStartupTimeout(10000))
|
||||
)
|
||||
}
|
||||
|
|
|
@ -23,6 +23,9 @@ export async function getDatasource(): Promise<Datasource> {
|
|||
.withEnvironment({
|
||||
ORACLE_PASSWORD: password,
|
||||
})
|
||||
.withTmpFs({
|
||||
"/opt/oracle/oradata/FREEPDB1": "",
|
||||
})
|
||||
.withWaitStrategy(Wait.forLogMessage("DATABASE IS READY TO USE!"))
|
||||
)
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ export async function getDatasource(): Promise<Datasource> {
|
|||
new GenericContainer(POSTGRES_IMAGE)
|
||||
.withExposedPorts(5432)
|
||||
.withEnvironment({ POSTGRES_PASSWORD: "password" })
|
||||
.withTmpFs({ "/var/lib/postgresql/data": "rw" })
|
||||
.withWaitStrategy(
|
||||
Wait.forSuccessfulCommand(
|
||||
"pg_isready -h localhost -p 5432"
|
||||
|
|
Loading…
Reference in New Issue