-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-robot-tests.yml
71 lines (66 loc) · 1.44 KB
/
docker-compose-robot-tests.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.7'
services:
seleniumgrid:
image: elgalu/selenium:latest
ports:
- 4444:4444
- 5900:25900
environment:
VNC_PASSWORD: "no"
SCREEN_WIDTH: "1920"
SCREEN_HEIGHT: "1080"
SELENIUM_HUB_PORT: 4444
CHROME: "true"
VIDEO: "false"
volumes:
- ./end_to_end_tests/logs/videos:/home/seluser/videos
privileged: true
networks:
- local
back-end:
build: ./backend_server
ports:
- "5000:5000"
env_file:
- ${ENV_FILE}
container_name: backend-server
networks:
- local
front-end:
build: ./frontend
ports:
- "3000:3000"
volumes:
- ./frontend/src:/app/src
container_name: frontend-server
tty: true
stdin_open: false
networks:
- local
robot:
user: root
build:
context: ./end_to_end_tests
dockerfile: ./resources/Dockerfile
env_file:
- ${ENV_FILE}
environment:
CI_PIPELINE_ID: ${GITHUB_WORKFLOW}
CI_COMMIT_REF_NAME: ${GITHUB_HEAD_REF}
CI_COMMIT_SHA: ${GITHUB_SHA}
CI_REPOSITORY: ${GITHUB_REPOSITORY}
CI_RUN_NUMBER: ${GITHUB_RUN_NUMBER}
CI_RUN_ID: ${GITHUB_RUN_ID}
CI_USERNAME: ${GITHUB_ACTOR}
CI_EVENT_NAME: ${GITHUB_EVENT_NAME}
volumes:
- ./end_to_end_tests/logs:/home/robot/test/logs
depends_on:
- seleniumgrid
- front-end
- back-end
networks:
- local
networks:
local:
driver: bridge