-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
docker-compose-v3-test-standalone-docker.yaml
67 lines (65 loc) · 2.35 KB
/
docker-compose-v3-test-standalone-docker.yaml
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
version: "3"
services:
standalone-docker:
image: ${NAMESPACE}/standalone-docker:${TAG}
depends_on:
- ftp_server
volumes:
- ./videos:/opt/selenium/assets
- ./videos/config.toml:/opt/selenium/config.toml
- /var/run/docker.sock:/var/run/docker.sock
environment:
- SE_ENABLE_TRACING=false
- SE_VNC_NO_PASSWORD=true
- SE_START_VNC=true
- SE_LOG_LEVEL=${LOG_LEVEL}
- SE_NODE_ENABLE_MANAGED_DOWNLOADS=${SELENIUM_ENABLE_MANAGED_DOWNLOADS}
- SE_NODE_GRID_URL=${GRID_URL}
- SE_OPTS=--log-level ${LOG_LEVEL} --enable-managed-downloads ${SELENIUM_ENABLE_MANAGED_DOWNLOADS}
- SE_VIDEO_RECORD_STANDALONE=${RECORD_STANDALONE}
- SE_VIDEO_FILE_NAME=${VIDEO_FILE_NAME}
- SE_VIDEO_FILE_NAME_SUFFIX=${VIDEO_FILE_NAME_SUFFIX}
- SE_VIDEO_UPLOAD_ENABLED=true
- SE_UPLOAD_DESTINATION_PREFIX=myftp://ftp/seluser
- SE_RCLONE_CONFIG_MYFTP_TYPE=ftp
- SE_RCLONE_CONFIG_MYFTP_HOST=ftp_server
- SE_RCLONE_CONFIG_MYFTP_PORT=21
- SE_RCLONE_CONFIG_MYFTP_USER=seluser
- SE_RCLONE_CONFIG_MYFTP_PASS=KkK8RsUIba-MMTBUSnuYIdAKvcnFyLl2pdhQig
- SE_RCLONE_CONFIG_MYFTP_FTP_CONCURRENCY=10
container_name: selenium-hub
ports:
- "4444:4444"
healthcheck:
test: "/opt/bin/check-grid.sh --host 0.0.0.0 --port 4444"
interval: 15s
timeout: 30s
retries: 5
ftp_server:
image: delfer/alpine-ftp-server:latest
container_name: ftp_server
command: ["/bin/sh", "-c", "/sbin/tini -- /bin/start_vsftpd.sh && tail -f /dev/null"]
environment:
- USERS=seluser|selenium.dev
- MAX_PORT=21010
- TINI_SUBREAPER=true
volumes:
- ./videos/upload:/ftp/seluser
stop_grace_period: 30s
tests:
image: docker-selenium-tests:latest
build:
context: ./
dockerfile: ./Dockerfile
depends_on:
- standalone-docker
environment:
- RUN_IN_DOCKER_COMPOSE=true
- SELENIUM_GRID_HOST=selenium-hub
- BINDING_VERSION=${BINDING_VERSION}
- SELENIUM_ENABLE_MANAGED_DOWNLOADS=${SELENIUM_ENABLE_MANAGED_DOWNLOADS}
- TEST_PARALLEL_HARDENING=${TEST_PARALLEL_HARDENING}
- TEST_DELAY_AFTER_TEST=${TEST_DELAY_AFTER_TEST}
- HUB_CHECKS_INTERVAL=${HUB_CHECKS_INTERVAL}
- TEST_CUSTOM_SPECIFIC_NAME=${TEST_CUSTOM_SPECIFIC_NAME}
command: ["/bin/bash", "-c", "./bootstrap.sh ${NODE}"]