-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
docker-compose-v3-test-node-relay.yml
94 lines (89 loc) · 2.71 KB
/
docker-compose-v3-test-node-relay.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
services:
node-relay-standalone:
image: ${NAMESPACE}/node-base:${TAG}
shm_size: 2gb
depends_on:
- selenium-hub
- standalone
volumes:
- ./videos/relay_config.toml:/opt/selenium/config.toml
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_LOG_LEVEL=${LOG_LEVEL}
- GENERATE_CONFIG=false
standalone:
image: ${NAMESPACE}/standalone-${BROWSER}:${TAG}
shm_size: 2gb
environment:
- SE_OPTS=--enable-cdp true
- SE_NODE_ENABLE_CDP=true
selenium-hub:
image: ${NAMESPACE}/hub:${TAG}
environment:
- SE_LOG_LEVEL=${LOG_LEVEL}
- SE_SESSION_REQUEST_TIMEOUT=${REQUEST_TIMEOUT}
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
tests:
image: docker-selenium-tests:${TAG}
build:
context: ./
dockerfile: ./Dockerfile
depends_on:
- selenium-hub
environment:
- RUN_IN_DOCKER_COMPOSE=true
- SELENIUM_GRID_HOST=selenium-hub
- BINDING_VERSION=${BINDING_VERSION}
- SELENIUM_ENABLE_MANAGED_DOWNLOADS=false
- TEST_NODE_RELAY=${TEST_NODE_RELAY}
- ANDROID_PLATFORM_API=${ANDROID_PLATFORM_API}
- TEST_DELAY_AFTER_TEST=${TEST_DELAY_AFTER_TEST}
command: ["/bin/bash", "-c", "./bootstrap.sh ${NODE}"]
node-relay-emulator:
profiles:
- Android
image: ${NAMESPACE}/node-base:${TAG}
shm_size: 2gb
depends_on:
- selenium-hub
- emulator
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_LOG_LEVEL=${LOG_LEVEL}
- SE_NODE_SESSION_TIMEOUT=${SESSION_TIMEOUT}
- SE_NODE_RELAY_URL=http://emulator:4723
- SE_NODE_RELAY_PROTOCOL_VERSION=HTTP/1.1
- SE_NODE_RELAY_MAX_SESSIONS=1
- SE_NODE_RELAY_PLATFORM_NAME=Android
- SE_NODE_RELAY_PLATFORM_VERSION=${ANDROID_PLATFORM_API}
- SE_NODE_RELAY_BROWSER_NAME=chrome
- SE_NODE_RELAY_WEB_VNC=ws://emulator:6080/websockify
emulator:
profiles:
- Android
image: ${ANDROID_BASED_NAME}/${ANDROID_BASED_IMAGE}:${TAG}
shm_size: 2gb
build:
args:
ANDROID_BASED_NAME: ${ANDROID_BASED_NAME}
ANDROID_BASED_IMAGE: ${ANDROID_BASED_IMAGE}
ANDROID_BASED_TAG: ${ANDROID_BASED_TAG}
CHROME_DRIVER_URL: https://chromedriver.storage.googleapis.com/113.0.5672.63/chromedriver_linux64.zip
dockerfile: ./Dockerfile.emulator
environment:
- EMULATOR_DEVICE=Nexus 5
- WEB_VNC=true
- APPIUM=true
- WEB_LOG=true
- WEB_LOG_PORT=9001
- EMULATOR_NO_SKIN=true
- EMULATOR_NAME=emulator-5554
devices:
- /dev/kvm