Re-enables e2e tests. Sets up db, backend, and pb for e2e testing.
This commit is contained in:
parent
5abfa0411b
commit
0837b4d2b5
|
@ -2,13 +2,13 @@ version: "3.3"
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
container_name: db
|
container_name: db
|
||||||
image: sartography/cr-connect-db:dev
|
image: sartography/cr-connect-db:$E2E_TAG
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=rrt_user
|
- POSTGRES_USER=crc_user
|
||||||
- POSTGRES_PASSWORD=rrt_pass
|
- POSTGRES_PASSWORD=crc_pass
|
||||||
- POSTGRES_MULTIPLE_DATABASES=rrt
|
- POSTGRES_MULTIPLE_DATABASES=crc_test,pb_test
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "pg_isready"]
|
test: ["CMD", "pg_isready"]
|
||||||
timeout: 20s
|
timeout: 20s
|
||||||
|
@ -18,12 +18,35 @@ services:
|
||||||
container_name: backend
|
container_name: backend
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
image: sartography/cr-connect-workflow:dev
|
image: sartography/cr-connect-workflow:$E2E_TAG
|
||||||
environment:
|
environment:
|
||||||
- APPLICATION_ROOT=/api
|
- APPLICATION_ROOT=/
|
||||||
- CORS_ALLOW_ORIGINS=localhost:5002,bpmn:5002,localhost:4200,frontend:4200
|
- CORS_ALLOW_ORIGINS=localhost:5002,bpmn:5002,localhost:4200,frontend:4200
|
||||||
- DB_HOST=db
|
- DB_HOST=db
|
||||||
- DB_NAME=rrt
|
- DB_NAME=crc_test
|
||||||
|
- DB_PASSWORD=crc_pass
|
||||||
|
- DB_PORT=5432
|
||||||
|
- DB_USER=crc_user
|
||||||
|
- LDAP_URL=ldap:3004
|
||||||
|
- PB_ENABLED=false
|
||||||
|
- PORT0=5000
|
||||||
|
- RESET_DB=true
|
||||||
|
- UPGRADE_DB=true
|
||||||
|
- TESTING=true
|
||||||
|
ports:
|
||||||
|
- "5000:5000"
|
||||||
|
command: ./wait-for-it.sh db:5432 -t 0 -- ./docker_run.sh
|
||||||
|
|
||||||
|
pb:
|
||||||
|
container_name: pb
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
image: sartography/cr-connect-workflow:$E2E_TAG
|
||||||
|
environment:
|
||||||
|
- APPLICATION_ROOT=/
|
||||||
|
- CORS_ALLOW_ORIGINS=localhost:5000,backend:5000,localhost:5002,bpmn:5002,localhost:4200,frontend:4200
|
||||||
|
- DB_HOST=db
|
||||||
|
- DB_NAME=pb_test
|
||||||
- DB_PASSWORD=rrt_pass
|
- DB_PASSWORD=rrt_pass
|
||||||
- DB_PORT=5432
|
- DB_PORT=5432
|
||||||
- DB_USER=rrt_user
|
- DB_USER=rrt_user
|
||||||
|
@ -33,37 +56,37 @@ services:
|
||||||
- RESET_DB=true
|
- RESET_DB=true
|
||||||
- UPGRADE_DB=true
|
- UPGRADE_DB=true
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5001:5001"
|
||||||
command: ./wait-for-it.sh db:5432 -t 0 -- ./docker_run.sh
|
command: ./wait-for-it.sh db:5432 -t 0 -- ./docker_run.sh
|
||||||
|
|
||||||
bpmn:
|
# bpmn:
|
||||||
container_name: bpmn
|
# container_name: bpmn
|
||||||
depends_on:
|
# depends_on:
|
||||||
- db
|
# - db
|
||||||
- backend
|
# - backend
|
||||||
image: sartography/cr-connect-bpmn:dev
|
# image: sartography/cr-connect-bpmn:dev
|
||||||
environment:
|
# environment:
|
||||||
- API_URL=http://localhost:5000/api/v1.0
|
# - API_URL=http://localhost:5000/api/v1.0
|
||||||
- BASE_HREF=/bpmn/
|
# - BASE_HREF=/bpmn/
|
||||||
- DEPLOY_URL=/bpmn/
|
# - DEPLOY_URL=/bpmn/
|
||||||
- HOME_ROUTE=home
|
# - HOME_ROUTE=home
|
||||||
- PORT0=5002
|
# - PORT0=5002
|
||||||
- PRODUCTION=false
|
# - PRODUCTION=false
|
||||||
ports:
|
# ports:
|
||||||
- "5002:5002"
|
# - "5002:5002"
|
||||||
|
#
|
||||||
frontend:
|
# frontend:
|
||||||
container_name: frontend
|
# container_name: frontend
|
||||||
depends_on:
|
# depends_on:
|
||||||
- db
|
# - db
|
||||||
- backend
|
# - backend
|
||||||
image: sartography/cr-connect-frontend:dev
|
# image: sartography/cr-connect-frontend:dev
|
||||||
environment:
|
# environment:
|
||||||
- API_URL=http://localhost:5000/api/v1.0
|
# - API_URL=http://localhost:5000/api/v1.0
|
||||||
- BASE_HREF=/app/
|
# - BASE_HREF=/app/
|
||||||
- DEPLOY_URL=/app/
|
# - DEPLOY_URL=/app/
|
||||||
- HOME_ROUTE=home
|
# - HOME_ROUTE=home
|
||||||
- PORT0=4200
|
# - PORT0=4200
|
||||||
- PRODUCTION=false
|
# - PRODUCTION=false
|
||||||
ports:
|
# ports:
|
||||||
- "4200:4200"
|
# - "4200:4200"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"e2e-wf:pb-setup": "docker exec -it pb pipenv run flask db upgrade",
|
"e2e-wf:pb-setup": "docker exec -it pb pipenv run flask db upgrade",
|
||||||
"e2e-wf": "npm run e2e-wf:stop && npm run e2e-wf:clean && npm run e2e-wf:build && npm run e2e-wf:start && npm run e2e-wf:db-upgrade && npm run e2e-wf:db-setup && npm run e2e-wf:pb-setup",
|
"e2e-wf": "npm run e2e-wf:stop && npm run e2e-wf:clean && npm run e2e-wf:build && npm run e2e-wf:start && npm run e2e-wf:db-upgrade && npm run e2e-wf:db-setup && npm run e2e-wf:pb-setup",
|
||||||
"env": "chmod +x ./docker/substitute-env-variables.sh && ./docker/substitute-env-variables.sh src/index.html PRODUCTION,API_URL,IRB_URL,HOME_ROUTE,BASE_HREF,DEPLOY_URL,PORT0,GOOGLE_ANALYTICS_KEY,SENTRY_KEY,TITLE",
|
"env": "chmod +x ./docker/substitute-env-variables.sh && ./docker/substitute-env-variables.sh src/index.html PRODUCTION,API_URL,IRB_URL,HOME_ROUTE,BASE_HREF,DEPLOY_URL,PORT0,GOOGLE_ANALYTICS_KEY,SENTRY_KEY,TITLE",
|
||||||
"ci": "npm run lint && npm run test:coverage && sonar-scanner"
|
"ci": "npm run lint && npm run test:coverage && npm run env && npm run e2e:with-wf && sonar-scanner"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue