1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

selenium: change screen to small size

This commit is contained in:
kev 2016-11-30 21:18:00 +08:00
parent 392f947d08
commit 1aefbad7f6
3 changed files with 13 additions and 1 deletions

View File

@ -16,6 +16,9 @@ firefox:
- hub - hub
environment: environment:
- JAVA_OPTS=-Xmx768m - JAVA_OPTS=-Xmx768m
- SCREEN_WIDTH=1024
- SCREEN_HEIGHT=768
- SCREEN_DEPTH=16
- NODE_MAX_INSTANCES=5 - NODE_MAX_INSTANCES=5
- NODE_MAX_SESSION=5 - NODE_MAX_SESSION=5
restart: always restart: always
@ -29,6 +32,9 @@ chrome:
- hub - hub
environment: environment:
- JAVA_OPTS=-Xmx768m - JAVA_OPTS=-Xmx768m
- SCREEN_WIDTH=1024
- SCREEN_HEIGHT=768
- SCREEN_DEPTH=16
- NODE_MAX_INSTANCES=5 - NODE_MAX_INSTANCES=5
- NODE_MAX_SESSION=5 - NODE_MAX_SESSION=5
restart: always restart: always

View File

@ -1,10 +1,13 @@
firefox: firefox:
image: selenium/node-firefox image: selenium/node-firefox-debug
ports: ports:
- "5555:5555" - "5555:5555"
- "5900:5900" - "5900:5900"
environment: environment:
- JAVA_OPTS=-Xmx512m - JAVA_OPTS=-Xmx512m
- SCREEN_WIDTH=1024
- SCREEN_HEIGHT=768
- SCREEN_DEPTH=16
- NODE_MAX_INSTANCES=2 - NODE_MAX_INSTANCES=2
- NODE_MAX_SESSION=2 - NODE_MAX_SESSION=2
- SE_OPTS=-host 5.6.7.8 -port 5555 - SE_OPTS=-host 5.6.7.8 -port 5555

View File

@ -5,4 +5,7 @@ firefox:
- "5900:5900" - "5900:5900"
environment: environment:
- JAVA_OPTS=-Xmx512m - JAVA_OPTS=-Xmx512m
- SCREEN_WIDTH=1024
- SCREEN_HEIGHT=768
- SCREEN_DEPTH=16
restart: always restart: always