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.
Note SeleniumHQ/docker-selenium project is more useful for building selenium grids while this one focuses on building disposable standalone seleniums with [video recording support](./docs/videos.md) and both browsers on the same container. It also adds some other features like [customizing the screen size](#screen-size) and [ssh access](#ssh) that can be particularly useful for tunneling support.
@@ -22,10 +23,10 @@ Note SeleniumHQ/docker-selenium project is more useful for building selenium gri
22
23
23
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.
24
25
25
-
docker pull elgalu/selenium:2.53.0e
26
+
docker pull elgalu/selenium:2.53.0f
26
27
27
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:
31
32
@@ -55,7 +56,7 @@ You can also ssh into the machine as long as `SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa
55
56
docker run --rm -ti --name=grid -p=4444:24444 -p=5920:25900 -p=22222:22222 \
56
57
-e SSHD=true \
57
58
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" \
58
-
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0e
59
+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0f
59
60
60
61
Then
61
62
@@ -66,7 +67,7 @@ Include `-X` in ssh command if you want to redirect the started GUI programs to
66
67
docker run --rm -ti --name=grid -p=4444:24444 -p=5920:25900 -p=22222:22222 \
67
68
-e SSHD=true -e SSHD_X11FORWARDING=yes \
68
69
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" \
69
-
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0e
70
+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0f
70
71
71
72
Then
72
73
@@ -84,12 +85,12 @@ Supervisor exposes an http server but is not enough to bind the ports via `docke
84
85
### Screen size
85
86
You can set a custom screen size at docker run time by providing `SCREEN_WIDTH` and `SCREEN_HEIGHT` environment variables:
86
87
87
-
docker pull elgalu/selenium:2.53.0e
88
+
docker pull elgalu/selenium:2.53.0f
88
89
89
90
docker run -d --name=grid -p 4444:24444 -p 5920:25900 \
90
91
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
91
92
-e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1480 \
92
-
elgalu/selenium:2.53.0e
93
+
elgalu/selenium:2.53.0f
93
94
94
95
docker exec grid wait_all_done 10s
95
96
@@ -142,7 +143,7 @@ You need to pass the environment variable `-e NOVNC=true` in order to start the
142
143
143
144
docker run --rm -ti --name=grid -p 4444:24444 -p 5920:25900 \
If the VNC password was randomly generated find out with
148
149
@@ -211,9 +212,9 @@ There are also additional steps you can take to ensure you're using the correct
211
212
212
213
You can simply verify that image id is indeed the correct one.
213
214
214
-
# e.g. full image id for tag 2.53.0e
215
+
# e.g. full image id for tag 2.53.0f
215
216
export IMGID="<<Please see CHANGELOG.md>>"
216
-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0e |grep ${IMGID} &> /dev/null; then
217
+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0f |grep ${IMGID} &> /dev/null; then
217
218
echo "Image ID tested ok"
218
219
else
219
220
echo "Image ID doesn't match"
@@ -223,7 +224,7 @@ You can simply verify that image id is indeed the correct one.
223
224
224
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:
@@ -353,7 +354,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
353
354
354
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:
0 commit comments