-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.58 KB
/
docker-compose.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
version: "3.3"
services:
java-app:
image: java-app1
ports:
- "8080:8080"
container_name: java-app
healthcheck:
#test: ["CMD", "lsof", "-i:8080"]
test: grep -i "Server startup" /usr/local/tomcat/logs/catalina.`date +"%Y-%m-%d"`.log || exit 1
#test: ["CMD-SHELL", "grep -i", "Server startup", "/usr/local/tomcat/logs/catalina.`date +"%Y-%m-%d"`"]
interval: 5s
timeout: 2s
retries: 3
selenium-hub:
image: selenium/hub
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome-debug
depends_on:
- selenium-hub
environment:
- HUB_PORT_4444_TCP_ADDR=selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
container_name: selenium-chrome
volumes:
- /dev/shm:/dev/shm
ports:
- "5901:5900"
firefox:
image: selenium/node-firefox-debug
depends_on:
- selenium-hub
environment:
- HUB_PORT_4444_TCP_ADDR=selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
container_name: selenium-firefox
volumes:
- /dev/shm:/dev/shm
ports:
- "5900:5900"
selenium-test:
build: ./node
restart: always
container_name: selenium-test
volumes:
- /home/apps/selenium/test:/home/node/test:rw
- /home/apps/selenium/report:/home/node/report:rw
depends_on:
- java-app
# condition: service_healthy
working_dir: /home/node/test
command : selenium-side-runner Test-session-selenium.side --server http://selenium-hub:4444/wd/hub -c "browserName='chrome'" --output-directory=/home/node/report