adding startup script for local

This commit is contained in:
Martin McKeaveney 2022-09-25 23:43:37 +01:00
parent e796a86809
commit 9b44d3ec63
4 changed files with 19 additions and 3 deletions

View File

@ -27,7 +27,7 @@ jobs:
couchdb: couchdb:
image: ibmcom/couchdb3 image: ibmcom/couchdb3
env: env:
COUCHDB_PASSWORD: budibase COUCHDB_PASSWORD: budibase
COUCHDB_USER: budibase COUCHDB_USER: budibase
ports: ports:
- 4567:5984 - 4567:5984

View File

@ -1,4 +1,6 @@
BB_ADMIN_USER_EMAIL=qa@budibase.com BB_ADMIN_USER_EMAIL=qa@budibase.com
BB_ADMIN_USER_PASSWORD=budibase BB_ADMIN_USER_PASSWORD=budibase
ENCRYPTED_TEST_PUBLIC_API_KEY=a65722f06bee5caeadc5d7ca2f543a43-d610e627344210c643bb726f ENCRYPTED_TEST_PUBLIC_API_KEY=a65722f06bee5caeadc5d7ca2f543a43-d610e627344210c643bb726f
COUCH_DB_URL=http://budibase:budibase@localhost:4567 COUCH_DB_URL=http://budibase:budibase@localhost:4567
COUCH_DB_USER=budibase
COUCH_DB_PASSWORD=budibase

View File

@ -0,0 +1,12 @@
version: "3.8"
services:
qa-core-couchdb:
# platform: linux/amd64
container_name: budi-couchdb-qa
restart: on-failure
image: ibmcom/couchdb3
environment:
- COUCHDB_PASSWORD=${COUCH_DB_PASSWORD}
- COUCHDB_USER=${COUCH_DB_USER}
ports:
- "4567:5984"

View File

@ -12,7 +12,9 @@
"test": "jest --runInBand", "test": "jest --runInBand",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"test:debug": "DEBUG=1 jest", "test:debug": "DEBUG=1 jest",
"api:server:setup": "env-cmd ts-node ../packages/builder/cypress/ts/setup.ts", "docker:up": "docker-compose up -d",
"docker:down": "docker-compose down",
"api:server:setup": "npm run docker:up && env-cmd ts-node ../packages/builder/cypress/ts/setup.ts",
"api:server:setup:ci": "env-cmd node ../packages/builder/cypress/setup.js", "api:server:setup:ci": "env-cmd node ../packages/builder/cypress/setup.js",
"api:test:ci": "start-server-and-test api:server:setup:ci http://localhost:4100/builder test", "api:test:ci": "start-server-and-test api:server:setup:ci http://localhost:4100/builder test",
"api:test": "start-server-and-test api:server:setup http://localhost:4100/builder test" "api:test": "start-server-and-test api:server:setup http://localhost:4100/builder test"