From 35b7c7d1a0b620f8e5274804b919fbf70c461535 Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 23 Nov 2016 15:25:50 +0800 Subject: [PATCH] update selenium --- selenium/docker-compose-hub.yml | 15 +++++++++++---- selenium/docker-compose-node.yml | 13 +++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 selenium/docker-compose-node.yml diff --git a/selenium/docker-compose-hub.yml b/selenium/docker-compose-hub.yml index 2af712a..bd5ae3d 100644 --- a/selenium/docker-compose-hub.yml +++ b/selenium/docker-compose-hub.yml @@ -2,26 +2,33 @@ hub: image: selenium/hub ports: - "4444:4444" + environment: + - GRID_TIMEOUT=30000 + - GRID_BROWSER_TIMEOUT=30000 restart: always firefox: image: selenium/node-firefox-debug ports: - "5555" - - "5900" + - "5901:5900" links: - hub environment: - - JAVA_OPTS=-Xmx512m + - JAVA_OPTS=-Xmx768m + - NODE_MAX_INSTANCES=5 + - NODE_MAX_SESSION=5 restart: always chrome: image: selenium/node-chrome-debug ports: - "5555" - - "5900" + - "5902:5900" links: - hub environment: - - JAVA_OPTS=-Xmx512m + - JAVA_OPTS=-Xmx768m + - NODE_MAX_INSTANCES=5 + - NODE_MAX_SESSION=5 restart: always diff --git a/selenium/docker-compose-node.yml b/selenium/docker-compose-node.yml new file mode 100644 index 0000000..39fef2a --- /dev/null +++ b/selenium/docker-compose-node.yml @@ -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