diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 36f78d5d5a..6e0e4273f6 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -2,7 +2,7 @@ Image(s): Docker-Selenium Image Version(s): - + Docker Version: OS: diff --git a/Hub/Dockerfile b/Hub/Dockerfile index e1ea7168b2..3e0dd61708 100644 --- a/Hub/Dockerfile +++ b/Hub/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/base:3.6.0-bromine +FROM selenium/base:3.6.0-copper LABEL authors=SeleniumHQ USER seluser @@ -29,6 +29,8 @@ ENV GRID_BROWSER_TIMEOUT 0 ENV GRID_TIMEOUT 30 # Debug ENV GRID_DEBUG false +# As integer, maps to "port" +ENV GRID_HUB_PORT 4444 COPY generate_config \ entry_point.sh \ diff --git a/Makefile b/Makefile index 60904f03f7..de1d3683d4 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME := selenium -VERSION := $(or $(VERSION),$(VERSION),3.6.0-bromine) +VERSION := $(or $(VERSION),$(VERSION),3.6.0-copper) NAMESPACE := $(or $(NAMESPACE),$(NAMESPACE),$(NAME)) AUTHORS := $(or $(AUTHORS),$(AUTHORS),SeleniumHQ) PLATFORM := $(shell uname -s) diff --git a/NodeBase/Dockerfile b/NodeBase/Dockerfile index be4e99e4d3..18ccd52088 100644 --- a/NodeBase/Dockerfile +++ b/NodeBase/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/base:3.6.0-bromine +FROM selenium/base:3.6.0-copper LABEL authors=SeleniumHQ USER root diff --git a/NodeChrome/Dockerfile b/NodeChrome/Dockerfile index ae34fe0b0d..fd02f23106 100644 --- a/NodeChrome/Dockerfile +++ b/NodeChrome/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-base:3.6.0-bromine +FROM selenium/node-base:3.6.0-copper LABEL authors=SeleniumHQ USER root diff --git a/NodeChromeDebug/Dockerfile b/NodeChromeDebug/Dockerfile index 1d77a8527e..1635360eaf 100644 --- a/NodeChromeDebug/Dockerfile +++ b/NodeChromeDebug/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-chrome:3.6.0-bromine +FROM selenium/node-chrome:3.6.0-copper LABEL authors=SeleniumHQ USER root diff --git a/NodeChromeDebug/README.md b/NodeChromeDebug/README.md index 541d8121e6..45f4762d6f 100644 --- a/NodeChromeDebug/README.md +++ b/NodeChromeDebug/README.md @@ -38,7 +38,7 @@ If you are running Boot2Docker on Mac then you already have a [VNC client](http: When you are prompted for the password it is __secret__. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a docker image that derives from the posted ones which reconfigures it: ``` dockerfile -FROM selenium/node-chrome-debug:3.6.0-bromine +FROM selenium/node-chrome-debug:3.6.0-copper RUN x11vnc -storepasswd /home/seluser/.vnc/passwd ``` diff --git a/NodeDebug/README.template.md b/NodeDebug/README.template.md index 42400d97b2..e3c881c8c4 100644 --- a/NodeDebug/README.template.md +++ b/NodeDebug/README.template.md @@ -38,7 +38,7 @@ If you are running Boot2Docker on Mac then you already have a [VNC client](http: When you are prompted for the password it is __secret__. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a docker image that derives from the posted ones which reconfigures it: ``` dockerfile -FROM selenium/##BASE##-debug:3.6.0-bromine +FROM selenium/##BASE##-debug:3.6.0-copper RUN x11vnc -storepasswd /home/seluser/.vnc/passwd ``` diff --git a/NodeFirefox/Dockerfile b/NodeFirefox/Dockerfile index 51f3cc0d1b..466b8cf0a6 100644 --- a/NodeFirefox/Dockerfile +++ b/NodeFirefox/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-base:3.6.0-bromine +FROM selenium/node-base:3.6.0-copper LABEL authors=SeleniumHQ USER root diff --git a/NodeFirefoxDebug/Dockerfile b/NodeFirefoxDebug/Dockerfile index 4775c30a0d..749f84bee7 100644 --- a/NodeFirefoxDebug/Dockerfile +++ b/NodeFirefoxDebug/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-firefox:3.6.0-bromine +FROM selenium/node-firefox:3.6.0-copper LABEL authors=SeleniumHQ USER root diff --git a/NodeFirefoxDebug/README.md b/NodeFirefoxDebug/README.md index 360aa324ed..93393762ba 100644 --- a/NodeFirefoxDebug/README.md +++ b/NodeFirefoxDebug/README.md @@ -38,7 +38,7 @@ If you are running Boot2Docker on Mac then you already have a [VNC client](http: When you are prompted for the password it is __secret__. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a docker image that derives from the posted ones which reconfigures it: ``` dockerfile -FROM selenium/node-firefox-debug:3.6.0-bromine +FROM selenium/node-firefox-debug:3.6.0-copper RUN x11vnc -storepasswd /home/seluser/.vnc/passwd ``` diff --git a/NodePhantomJS/Dockerfile b/NodePhantomJS/Dockerfile index 2bf7e18266..e0e2325b40 100644 --- a/NodePhantomJS/Dockerfile +++ b/NodePhantomJS/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-base:3.6.0-bromine +FROM selenium/node-base:3.6.0-copper LABEL authors=SeleniumHQ USER root diff --git a/README.md b/README.md index 21d5bf9fb8..22f0c427ba 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Images included: When executing docker run for an image with chrome browser please add volume mount `-v /dev/shm:/dev/shm` to use the host's shared memory. ``` bash -$ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:3.6.0-bromine +$ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:3.6.0-copper ``` This is a workaround to node-chrome crash in docker container issue: https://code.google.com/p/chromium/issues/detail?id=519952 @@ -40,7 +40,7 @@ This is a workaround to node-chrome crash in docker container issue: https://cod When executing docker run for an image with firefox browser please set shm-size to 2g. ``` bash -$ docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:3.6.0-bromine +$ docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:3.6.0-copper ``` This is a workaround to node-firefox crash in docker container issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1338771#c10 @@ -49,9 +49,9 @@ This is a workaround to node-firefox crash in docker container issue: https://bu ### Standalone Chrome and Firefox ``` bash -$ docker run -d -p 4444:4444 selenium/standalone-chrome:3.6.0-bromine +$ docker run -d -p 4444:4444 selenium/standalone-chrome:3.6.0-copper # OR -$ docker run -d -p 4444:4444 selenium/standalone-firefox:3.6.0-bromine +$ docker run -d -p 4444:4444 selenium/standalone-firefox:3.6.0-copper ``` _Note: Only one standalone image can run on port_ `4444` _at a time._ @@ -61,9 +61,9 @@ To inspect visually what the browser is doing use the `standalone-chrome-debug` ### Selenium Grid Hub and Nodes ``` bash -$ docker run -d -p 4444:4444 --name selenium-hub selenium/hub:3.6.0-bromine -$ docker run -d --link selenium-hub:hub selenium/node-chrome:3.6.0-bromine -$ docker run -d --link selenium-hub:hub selenium/node-firefox:3.6.0-bromine +$ docker run -d -p 4444:4444 --name selenium-hub selenium/hub:3.6.0-copper +$ docker run -d --link selenium-hub:hub selenium/node-chrome:3.6.0-copper +$ docker run -d --link selenium-hub:hub selenium/node-firefox:3.6.0-copper ``` ## Configuring the containers @@ -73,7 +73,7 @@ $ docker run -d --link selenium-hub:hub selenium/node-firefox:3.6.0-bromine You can pass `JAVA_OPTS` environment variable to java process. ``` bash -$ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/hub:3.6.0-bromine +$ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/hub:3.6.0-copper ``` ### SE_OPTS Selenium Configuration Options @@ -81,7 +81,7 @@ $ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/ You can pass `SE_OPTS` variable with additional commandline parameters for starting a hub or a node. ``` bash -$ docker run -d -p 4444:4444 -e SE_OPTS="-debug true" --name selenium-hub selenium/hub:3.6.0-bromine +$ docker run -d -p 4444:4444 -e SE_OPTS="-debug true" --name selenium-hub selenium/hub:3.6.0-copper ``` ### HUB_PORT_4444_TCP_ADDR and HUB_PORT_4444_TCP_PORT Selenium Node Configuration options @@ -90,13 +90,13 @@ You can pass `HUB_PORT_4444_TCP_ADDR` and `HUB_PORT_4444_TCP_PORT` options to pr ``` bash $ docker run -d -p 4444:4444 -e HUB_PORT_4444_TCP_ADDR=10.10.1.10 -e HUB_PORT_4444_TCP_PORT=4444 \ - --name selenium-hub selenium/hub:3.6.0-bromine + --name selenium-hub selenium/hub:3.6.0-copper ``` ### PHANTOMJS_OPTS PhantomJS Configuration Options ``` bash -$ docker run -d -e PHANTOMJS_OPTS="--ignore-ssl-errors=true" --link selenium-hub:hub selenium/node-phantomjs:3.6.0-bromine +$ docker run -d -e PHANTOMJS_OPTS="--ignore-ssl-errors=true" --link selenium-hub:hub selenium/node-phantomjs:3.6.0-copper ``` You can pass `SE_OPTS` variable with additional commandline parameters for starting a PhantomJS node. @@ -122,10 +122,10 @@ _Note: Omitting_ `VERSION=local` _will build the images with the current version ##### Example: Spawn a container for testing in Chrome: ``` bash -$ docker run -d --name selenium-hub -p 4444:4444 selenium/hub:3.6.0-bromine +$ docker run -d --name selenium-hub -p 4444:4444 selenium/hub:3.6.0-copper $ CH=$(docker run --rm --name=ch \ --link selenium-hub:hub -v /e2e/uploads:/e2e/uploads \ - selenium/node-chrome:3.6.0-bromine) + selenium/node-chrome:3.6.0-copper) ``` _Note:_ `-v /e2e/uploads:/e2e/uploads` _is optional in case you are testing browser uploads on your web app you will probably need to share a directory for this._ @@ -135,10 +135,10 @@ _Note:_ `-v /e2e/uploads:/e2e/uploads` _is optional in case you are testing brow This command line is the same as for Chrome. Remember that the Selenium running container is able to launch either Chrome or Firefox, the idea around having 2 separate containers, one for each browser is for convenience plus avoiding certain `:focus` issues your web app may encounter during end-to-end test automation. ``` bash -$ docker run -d --name selenium-hub -p 4444:4444 selenium/hub:3.6.0-bromine +$ docker run -d --name selenium-hub -p 4444:4444 selenium/hub:3.6.0-copper $ FF=$(docker run --rm --name=fx \ --link selenium-hub:hub -v /e2e/uploads:/e2e/uploads \ - selenium/node-firefox:3.6.0-bromine) + selenium/node-firefox:3.6.0-copper) ``` _Note: Since a Docker container is not meant to preserve state and spawning a new one takes less than 3 seconds you will likely want to remove containers after each end-to-end test with_ `--rm` _command. You need to think of your Docker containers as single processes, not as running virtual machines, in case you are familiar with [Vagrant](https://www.vagrantup.com/)._ @@ -147,28 +147,28 @@ _Note: Since a Docker container is not meant to preserve state and spawning a ne In the event you wish to visually see what the browser is doing you will want to run the `debug` variant of node or standalone images. A VNC server will run on port 5900. You are free to map that to any free external port that you wish. Example: : 5900) you will only be able to run 1 node per port so if you wish to include a second node, or more, you will have to use different ports, the 5900 as the internal port will have to remain the same though as thats the VNC service on the node. The second example below shows how to run multiple nodes and with different VNC ports open: ``` bash -$ docker run -d -P -p :5900 --link selenium-hub:hub selenium/node-chrome-debug:3.6.0-bromine -$ docker run -d -P -p :5900 --link selenium-hub:hub selenium/node-firefox-debug:3.6.0-bromine +$ docker run -d -P -p :5900 --link selenium-hub:hub selenium/node-chrome-debug:3.6.0-copper +$ docker run -d -P -p :5900 --link selenium-hub:hub selenium/node-firefox-debug:3.6.0-copper ``` e.g.: ``` bash -$ docker run -d -P -p 5900:5900 --link selenium-hub:hub selenium/node-chrome-debug:3.6.0-bromine -$ docker run -d -P -p 5901:5900 --link selenium-hub:hub selenium/node-firefox-debug:3.6.0-bromine +$ docker run -d -P -p 5900:5900 --link selenium-hub:hub selenium/node-chrome-debug:3.6.0-copper +$ docker run -d -P -p 5901:5900 --link selenium-hub:hub selenium/node-firefox-debug:3.6.0-copper ``` to connect to the Chrome node on 5900 and the Firefox node on 5901 (assuming those node are free, and reachable). And for standalone: ``` bash -$ docker run -d -p 4444:4444 -p :5900 selenium/standalone-chrome-debug:3.6.0-bromine +$ docker run -d -p 4444:4444 -p :5900 selenium/standalone-chrome-debug:3.6.0-copper # OR -$ docker run -d -p 4444:4444 -p :5900 selenium/standalone-firefox-debug:3.6.0-bromine +$ docker run -d -p 4444:4444 -p :5900 selenium/standalone-firefox-debug:3.6.0-copper ``` or ``` bash -$ docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug:3.6.0-bromine +$ docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug:3.6.0-copper # OR -$ docker run -d -p 4444:4444 -p 5901:5900 selenium/standalone-firefox-debug:3.6.0-bromine +$ docker run -d -p 4444:4444 -p 5901:5900 selenium/standalone-firefox-debug:3.6.0-copper ``` You can acquire the port that the VNC server is exposed to by running: @@ -187,8 +187,8 @@ If you are running [Boot2Docker](https://docs.docker.com/installation/mac/) on O When you are prompted for the password it is `secret`. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a Docker image that derives from the posted ones which reconfigures it: ``` dockerfile -#FROM selenium/node-chrome-debug:3.6.0-bromine -#FROM selenium/node-firefox-debug:3.6.0-bromine +#FROM selenium/node-chrome-debug:3.6.0-copper +#FROM selenium/node-firefox-debug:3.6.0-copper #Choose the FROM statement that works for you. RUN x11vnc -storepasswd /home/seluser/.vnc/passwd diff --git a/StandaloneChrome/Dockerfile b/StandaloneChrome/Dockerfile index e262572cb1..a07b7fba3e 100644 --- a/StandaloneChrome/Dockerfile +++ b/StandaloneChrome/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-chrome:3.6.0-bromine +FROM selenium/node-chrome:3.6.0-copper LABEL authors=SeleniumHQ USER seluser diff --git a/StandaloneChromeDebug/Dockerfile b/StandaloneChromeDebug/Dockerfile index 845c626dbe..600d9c62d6 100644 --- a/StandaloneChromeDebug/Dockerfile +++ b/StandaloneChromeDebug/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-chrome-debug:3.6.0-bromine +FROM selenium/node-chrome-debug:3.6.0-copper LABEL authors=SeleniumHQ USER seluser diff --git a/StandaloneFirefox/Dockerfile b/StandaloneFirefox/Dockerfile index 8b98aa79ea..afd1503db4 100644 --- a/StandaloneFirefox/Dockerfile +++ b/StandaloneFirefox/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-firefox:3.6.0-bromine +FROM selenium/node-firefox:3.6.0-copper LABEL authors=SeleniumHQ USER seluser diff --git a/StandaloneFirefoxDebug/Dockerfile b/StandaloneFirefoxDebug/Dockerfile index b0323009fd..2f62720819 100644 --- a/StandaloneFirefoxDebug/Dockerfile +++ b/StandaloneFirefoxDebug/Dockerfile @@ -2,7 +2,7 @@ # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -FROM selenium/node-firefox-debug:3.6.0-bromine +FROM selenium/node-firefox-debug:3.6.0-copper LABEL authors=SeleniumHQ USER seluser diff --git a/sa-test.sh b/sa-test.sh index c4d4f877b8..8732fa2010 100755 --- a/sa-test.sh +++ b/sa-test.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash DEBUG='' -VERSION=${VERSION:-3.6.0-bromine} +VERSION=${VERSION:-3.6.0-copper} if [ -n "$1" ] && [ $1 == 'debug' ]; then DEBUG='-debug' diff --git a/test.sh b/test.sh index 16b1cc97ff..2fd5781c1c 100755 --- a/test.sh +++ b/test.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash DEBUG='' -VERSION=${VERSION:-3.6.0-bromine} +VERSION=${VERSION:-3.6.0-copper} if [ -n "$1" ] && [ $1 == 'debug' ]; then DEBUG='-debug'