Use docker-compose dev for dev testing
This commit is contained in:
parent
4df4494d00
commit
53fa5d99b2
|
@ -1,12 +1,26 @@
|
||||||
module.exports = env => ({
|
|
||||||
|
|
||||||
|
module.exports = dependenciesEnv => {
|
||||||
|
if (process.env.DEV_TOOLS) {
|
||||||
|
return {
|
||||||
|
dockerCompose: {
|
||||||
|
composeFilePath: `${__dirname}/hosting`,
|
||||||
|
composeFile: 'docker-compose.dev.yaml',
|
||||||
|
startupTimeout: 10000,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
devEnv: {
|
devEnv: {
|
||||||
image: "budibase/dependencies",
|
image: "budibase/dependencies",
|
||||||
tag: "latest",
|
tag: "latest",
|
||||||
ports: [6379, 5984, 9000],
|
ports: [6379, 5984, 9000],
|
||||||
env,
|
env: dependenciesEnv,
|
||||||
wait: {
|
wait: {
|
||||||
type: "text",
|
type: "text",
|
||||||
text: "Test environment started...",
|
text: "Test environment started...",
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
})
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
JWT_SECRET=testsecret
|
|
||||||
COUCHDB_USER=test_couchdb_user
|
|
||||||
COUCH_DB_USER=test_couchdb_user
|
|
||||||
COUCHDB_PASSWORD=test_couchdb_password
|
|
||||||
COUCH_DB_PASSWORD=test_couchdb_password
|
|
||||||
MINIO_ACCESS_KEY=budibase
|
|
||||||
MINIO_SECRET_KEY=budibase
|
|
|
@ -1,6 +1,6 @@
|
||||||
const { join } = require("path")
|
const { join } = require("path")
|
||||||
const { parsed: env } = require("dotenv").config({
|
const { parsed: env } = require("dotenv").config({
|
||||||
path: join(__dirname, ".env.test"),
|
path: join(__dirname, "..", "..", "hosting", ".env"),
|
||||||
})
|
})
|
||||||
|
|
||||||
const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator")
|
const jestTestcontainersConfigGenerator = require("../../jestTestcontainersConfigGenerator")
|
||||||
|
|
Loading…
Reference in New Issue