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
+13-30Lines changed: 13 additions & 30 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.52.0f
25
+
docker pull elgalu/selenium:2.52.0g
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.52.0f
67
+
docker pull elgalu/selenium:2.52.0g
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.52.0f
72
+
elgalu/selenium:2.52.0g
73
73
74
74
docker exec grid wait_all_done 10s
75
75
@@ -113,23 +113,6 @@ You can connect to see what's happening
113
113
114
114
open vnc://:ooGhai0aesaesh@localhost:5920
115
115
116
-
### noVNC
117
-
118
-
Disabled by default, [noVNC](https://github.com/kanaka/noVNC) provides a browser VNC client so you don't need to install a vnc viewer if you choose so. Note we were using guacamole before.
119
-
120
-
Safari Browser already comes with a built-in vnc viewer so this feature is overkill and is disabled by default, just navigate to vnc://localhost:5920 in your Safari browser.
121
-
122
-
You need to pass the environment variable `-e NOVNC=true` in order to start the noVNC service and will be able to open a browser at [localhost:6080](http://localhost:6080/vnc.html)
123
-
124
-
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 \
125
-
-p 6080:26080 -e NOVNC=true \
126
-
elgalu/selenium:2.52.0f
127
-
128
-
If the VNC password was randomly generated find out with
129
-
130
-
docker exec grid grep "was generated for you:" /var/log/cont/vnc-stdout.log
131
-
#=> a VNC password was generated for you: ooGhai0aesaesh
132
-
133
116
## Chrome crashed
134
117
135
118
If your tests crashes in Chrome you may need to increase shm size or simply start your container by sharing `-v /dev/shm:/dev/shm`
@@ -190,9 +173,9 @@ There are also additional steps you can take to ensure you're using the correct
190
173
191
174
You can simply verify that image id is indeed the correct one.
192
175
193
-
# e.g. full image id for tag 2.52.0f
176
+
# e.g. full image id for tag 2.52.0g
194
177
export IMGID="<<Please see CHANGELOG.md>>"
195
-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0f |grep ${IMGID} &> /dev/null; then
178
+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0g |grep ${IMGID} &> /dev/null; then
196
179
echo "Image ID tested ok"
197
180
else
198
181
echo "Image ID doesn't match"
@@ -202,7 +185,7 @@ You can simply verify that image id is indeed the correct one.
202
185
203
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:
@@ -331,7 +314,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
331
314
332
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:
333
316
334
-
docker pull elgalu/selenium:2.52.0f
317
+
docker pull elgalu/selenium:2.52.0g
335
318
336
319
#### 2. Use this image
337
320
@@ -400,6 +383,8 @@ So `--pid=host` is included to avoid https://github.com/docker/docker/issues/589
0 commit comments