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
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,10 @@ Note SeleniumHQ/docker-selenium project is more useful for building selenium gri
23
23
24
24
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.
25
25
26
-
docker pull elgalu/selenium:2.53.0f
26
+
docker pull elgalu/selenium:2.53.0g
27
27
28
28
docker run --rm -ti --name=grid -p 4444:24444 -p 5920:25900 \
Make sure `docker run` finishes via active wait with below command. This is **mandatory** before start running your tests! Note `grid` is the name of the container:
32
32
@@ -56,7 +56,7 @@ You can also ssh into the machine as long as `SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa
56
56
docker run --rm -ti --name=grid -p=4444:24444 -p=5920:25900 -p=22222:22222 \
57
57
-e SSHD=true \
58
58
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" \
59
-
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0f
59
+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0g
60
60
61
61
Then
62
62
@@ -67,7 +67,7 @@ Include `-X` in ssh command if you want to redirect the started GUI programs to
67
67
docker run --rm -ti --name=grid -p=4444:24444 -p=5920:25900 -p=22222:22222 \
68
68
-e SSHD=true -e SSHD_X11FORWARDING=yes \
69
69
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" \
70
-
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0f
70
+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0g
71
71
72
72
Then
73
73
@@ -85,12 +85,12 @@ Supervisor exposes an http server but is not enough to bind the ports via `docke
85
85
### Screen size
86
86
You can set a custom screen size at docker run time by providing `SCREEN_WIDTH` and `SCREEN_HEIGHT` environment variables:
87
87
88
-
docker pull elgalu/selenium:2.53.0f
88
+
docker pull elgalu/selenium:2.53.0g
89
89
90
90
docker run -d --name=grid -p 4444:24444 -p 5920:25900 \
91
91
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
92
92
-e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1480 \
93
-
elgalu/selenium:2.53.0f
93
+
elgalu/selenium:2.53.0g
94
94
95
95
docker exec grid wait_all_done 10s
96
96
@@ -143,7 +143,7 @@ You need to pass the environment variable `-e NOVNC=true` in order to start the
143
143
144
144
docker run --rm -ti --name=grid -p 4444:24444 -p 5920:25900 \
If the VNC password was randomly generated find out with
149
149
@@ -212,9 +212,9 @@ There are also additional steps you can take to ensure you're using the correct
212
212
213
213
You can simply verify that image id is indeed the correct one.
214
214
215
-
# e.g. full image id for tag 2.53.0f
215
+
# e.g. full image id for tag 2.53.0g
216
216
export IMGID="<<Please see CHANGELOG.md>>"
217
-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0f |grep ${IMGID} &> /dev/null; then
217
+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0g |grep ${IMGID} &> /dev/null; then
218
218
echo "Image ID tested ok"
219
219
else
220
220
echo "Image ID doesn't match"
@@ -224,7 +224,7 @@ You can simply verify that image id is indeed the correct one.
224
224
225
225
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:
@@ -354,7 +354,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
354
354
355
355
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.
351
351
@@ -359,7 +359,7 @@ You can lunch a node only container via environment variables:
359
359
-e SELENIUM_HUB_PORT=4444 \
360
360
-e SELENIUM_NODE_HOST=docker.host \
361
361
-e GRID=false -e CHROME=true -e FIREFOX=true \
362
-
elgalu/selenium:2.53.0f
362
+
elgalu/selenium:2.53.0g
363
363
364
364
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.
365
365
@@ -373,7 +373,7 @@ Start the grid with Chrome and Firefox
0 commit comments