Better CouchDB config passing.

This commit is contained in:
Sam Rose 2024-03-26 09:58:40 +00:00
parent d85db6b8fe
commit e5c7e653e4
No known key found for this signature in database
2 changed files with 6 additions and 4 deletions

View File

@ -7,9 +7,12 @@ export default async function setup() {
COUCHDB_PASSWORD: "budibase", COUCHDB_PASSWORD: "budibase",
COUCHDB_USER: "budibase", COUCHDB_USER: "budibase",
}) })
.withCopyFilesToContainer([ .withCopyContentToContainer([
{ {
source: "./test-couchdb.ini", content: `
[log]
level = warn
`,
target: "/opt/couchdb/etc/local.d/test-couchdb.ini", target: "/opt/couchdb/etc/local.d/test-couchdb.ini",
}, },
]) ])
@ -20,6 +23,7 @@ export default async function setup() {
) )
.start() .start()
// @ts-ignore
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
globalThis.__COUCHDB_CONTAINER_ID__ = container.getId() globalThis.__COUCHDB_CONTAINER_ID__ = container.getId()
} }

View File

@ -1,2 +0,0 @@
[log]
level = warn