2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 21:33:02 +01:00

update selenium

This commit is contained in:
kev
2016-11-23 15:25:50 +08:00
parent 78f8b4b314
commit 35b7c7d1a0
2 changed files with 24 additions and 4 deletions

View File

@@ -2,26 +2,33 @@ hub:
image: selenium/hub image: selenium/hub
ports: ports:
- "4444:4444" - "4444:4444"
environment:
- GRID_TIMEOUT=30000
- GRID_BROWSER_TIMEOUT=30000
restart: always restart: always
firefox: firefox:
image: selenium/node-firefox-debug image: selenium/node-firefox-debug
ports: ports:
- "5555" - "5555"
- "5900" - "5901:5900"
links: links:
- hub - hub
environment: environment:
- JAVA_OPTS=-Xmx512m - JAVA_OPTS=-Xmx768m
- NODE_MAX_INSTANCES=5
- NODE_MAX_SESSION=5
restart: always restart: always
chrome: chrome:
image: selenium/node-chrome-debug image: selenium/node-chrome-debug
ports: ports:
- "5555" - "5555"
- "5900" - "5902:5900"
links: links:
- hub - hub
environment: environment:
- JAVA_OPTS=-Xmx512m - JAVA_OPTS=-Xmx768m
- NODE_MAX_INSTANCES=5
- NODE_MAX_SESSION=5
restart: always restart: always

View File

@@ -0,0 +1,13 @@
firefox:
image: selenium/node-firefox
ports:
- "5555:5555"
- "5900:5900"
environment:
- JAVA_OPTS=-Xmx512m
- NODE_MAX_INSTANCES=2
- NODE_MAX_SESSION=2
- SE_OPTS=-host 5.6.7.8 -port 5555
- HUB_PORT_4444_TCP_ADDR=1.2.3.4
- HUB_PORT_4444_TCP_PORT=4444
restart: always