-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.ci.yml
71 lines (66 loc) · 1.68 KB
/
docker-compose.ci.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.9'
services:
synpress:
container_name: synpress
build:
context: .
dockerfile: e2eDockerfile
environment:
- DISPLAY=display:0.0
- PRIVATE_KEY=${PRIVATE_KEY}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- DEBUG=${DEBUG}
- GH_PAT=${GH_PAT}
- GH_USERNAME=${GH_USERNAME}
depends_on:
- display
- video
entrypoint: []
working_dir: /app
volumes:
- ./docker/videos:/app/tests/e2e/videos
- ./docker/screenshots:/app/tests/e2e/screenshots
command: >
bash -c 'echo -n "======> local noVNC URL:
http://localhost:8080/vnc.html?autoconnect=true " && npx wait-on
http://display:8080 && yarn preview & yarn test-e2e'
networks:
- x11
display:
container_name: display
image: synthetixio/display:b2643097e891906524e52e7ee956260b20fa01fb-base
environment:
- RUN_XTERM=no
- DISPLAY_WIDTH=${DISPLAY_WIDTH}
- DISPLAY_HEIGHT=${DISPLAY_HEIGHT}
ports:
- '8080:8080'
networks:
- x11
ngrok:
profiles:
- ngrok
container_name: ngrok
image: synthetixio/ngrok:b2643097e891906524e52e7ee956260b20fa01fb-base
ports:
- '4040:4040'
command: ['ngrok', 'http', 'display:8080', '--authtoken', '${NGROK_AUTH}']
depends_on:
- display
networks:
- x11
video:
container_name: video
image: synthetixio/video:b2643097e891906524e52e7ee956260b20fa01fb-base
volumes:
- ./docker/videos-ci:/videos
environment:
- FILE_NAME=CI-full-video.mp4
- SE_SCREEN_WIDTH=${SE_SCREEN_WIDTH}
- SE_SCREEN_HEIGHT=${SE_SCREEN_HEIGHT}
depends_on:
- display
networks:
- x11
networks:
x11: