forked from linode/manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci-environment-test.yml
38 lines (38 loc) · 1.23 KB
/
ci-environment-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.1'
services:
selenium:
image: selenium/hub:3.141.59-titanium
chrome:
image: selenium/node-chrome:3.141.59-titanium
volumes:
- /dev/shm:/dev/shm #Mitigates the Chromium issue described at https://code.google.com/p/chromium/issues/detail?id=519952
environment:
- HUB_PORT_4444_TCP_ADDR=selenium
- HUB_PORT_4444_TCP_PORT=4444
- SCREEN_HEIGHT=1080
- SCREEN_WIDTH=1600
depends_on:
- selenium
manager-e2e:
environment:
- CRED_STORE_MODE=${CRED_STORE_MODE}
- DOCKER=true
- REACT_APP_APP_ROOT=${REACT_APP_APP_ROOT}
- REACT_APP_API_ROOT=${REACT_APP_API_ROOT}
- MANAGER_USER=${MANAGER_USER}
- MANAGER_PASS=${MANAGER_PASS}
- MANAGER_USER_2=${MANAGER_USER_2}
- MANAGER_PASS_2=${MANAGER_PASS_2}
- MANAGER_OAUTH=${MANAGER_OAUTH}
- MANAGER_OAUTH_2=${MANAGER_OAUTH_2}
build:
context: .
dockerfile: Dockerfile
volumes:
- ./packages/manager/e2e/test-results:/home/node/app/packages/manager/e2e/test-results
entrypoint: ["/home/node/app/scripts/wait-for-it.sh", "-t", "250", "-s", "selenium:4444", "--", "yarn","e2e", "--log"]
depends_on:
- chrome
- mongodb
mongodb:
image: mongo:latest