You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,10 @@ Note SeleniumHQ/docker-selenium project is more useful for building selenium gri
22
22
23
23
In general add `sudo` only if needed in your environment and `--privileged` or `-v /dev/shm:/dev/shm` if you really need it like when [Chrome crashes](https://github.com/elgalu/docker-selenium/issues/20) during your high gpu intensive tests.
24
24
25
-
docker pull elgalu/selenium:2.49.1a
25
+
docker pull elgalu/selenium:2.49.1b
26
26
27
27
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 \
Make sure `docker run` finishes via active wait with below command. Note `grid` is the name of the container:
31
31
@@ -64,12 +64,12 @@ Supervisor exposes an http server but is not enough to bind the ports via `docke
64
64
### Screen size
65
65
You can set a custom screen size at docker run time by providing `SCREEN_WIDTH` and `SCREEN_HEIGHT` environment variables:
66
66
67
-
docker pull elgalu/selenium:2.49.1a
67
+
docker pull elgalu/selenium:2.49.1b
68
68
69
69
docker run -d --name=grid -p 4444:24444 -p 5920:25900 \
70
70
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
71
71
-e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1480 \
72
-
elgalu/selenium:2.49.1a
72
+
elgalu/selenium:2.49.1b
73
73
74
74
docker exec grid wait_all_done 10s
75
75
@@ -123,7 +123,7 @@ You need to pass the environment variable `-e NOVNC=true` in order to start the
123
123
124
124
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 \
125
125
-p 6080:26080 -e NOVNC=true \
126
-
elgalu/selenium:2.49.1a
126
+
elgalu/selenium:2.49.1b
127
127
128
128
If the VNC password was randomly generated find out with
129
129
@@ -173,9 +173,9 @@ There are also additional steps you can take to ensure you're using the correct
173
173
174
174
You can simply verify that image id is indeed the correct one.
175
175
176
-
# e.g. full image id for tag 2.49.1a
176
+
# e.g. full image id for tag 2.49.1b
177
177
export IMGID="<<Please see CHANGELOG.md>>"
178
-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.49.1a |grep ${IMGID} &> /dev/null; then
178
+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.49.1b |grep ${IMGID} &> /dev/null; then
179
179
echo "Image ID tested ok"
180
180
else
181
181
echo "Image ID doesn't match"
@@ -185,7 +185,7 @@ You can simply verify that image id is indeed the correct one.
185
185
186
186
Given docker.io currently allows to push the same tag image twice this represent a security concern but since docker >= 1.6.2 is possible to fetch the digest sha256 instead of the tag so you can be sure you're using the exact same docker image every time:
@@ -314,7 +314,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
314
314
315
315
If you prefer to download the final built image from docker you can pull it, personally I always prefer to build them manually except for the base images like Ubuntu 14.04.2:
The important part above is `-e CHROME=false -e FIREFOX=false` which tells the docker image not run run default chorme and firefox nodes turning the container into a grid-only one.
347
347
@@ -355,7 +355,7 @@ You can lunch a node only container via environment variables:
355
355
-e SELENIUM_HUB_PORT=4444 \
356
356
-e SELENIUM_NODE_HOST=docker.host \
357
357
-e GRID=false -e CHROME=true -e FIREFOX=true \
358
-
elgalu/selenium:2.49.1a
358
+
elgalu/selenium:2.49.1b
359
359
360
360
The important part above is `-e GRID=false` which tells the container to be a node-only node, this this case with 2 browsers `-e CHROME=true -e FIREFOX=true` but could be just 1.
361
361
@@ -369,7 +369,7 @@ Start the grid with Chrome and Firefox
0 commit comments