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.
@@ -22,17 +22,23 @@ 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.0g
25
+
docker pull elgalu/selenium:2.53.0a
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:
30
+
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
31
32
32
docker exec grid wait_all_done 30s
33
33
34
34
Selenium should be up and running at http://localhost:4444/wd/hub open the web page to confirm is running but if you are using Mac (OSX) `localhost` won't work! find out the correct IP through `boot2docker ip` or `docker-machine ip default`.
35
35
36
+
#### Stop
37
+
Shutdown gracefully
38
+
39
+
docker exec grid stop
40
+
docker stop grid
41
+
36
42
### OSX
37
43
Important, in Mac you need to gather the correct IP as localhost won't work unless you are in the Linux docker host machine:
38
44
@@ -64,12 +70,12 @@ Supervisor exposes an http server but is not enough to bind the ports via `docke
64
70
### Screen size
65
71
You can set a custom screen size at docker run time by providing `SCREEN_WIDTH` and `SCREEN_HEIGHT` environment variables:
66
72
67
-
docker pull elgalu/selenium:2.52.0g
73
+
docker pull elgalu/selenium:2.53.0a
68
74
69
75
docker run -d --name=grid -p 4444:24444 -p 5920:25900 \
70
76
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
71
77
-e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1480 \
72
-
elgalu/selenium:2.52.0g
78
+
elgalu/selenium:2.53.0a
73
79
74
80
docker exec grid wait_all_done 10s
75
81
@@ -173,9 +179,9 @@ There are also additional steps you can take to ensure you're using the correct
173
179
174
180
You can simply verify that image id is indeed the correct one.
175
181
176
-
# e.g. full image id for tag 2.52.0g
182
+
# e.g. full image id for tag 2.53.0a
177
183
export IMGID="<<Please see CHANGELOG.md>>"
178
-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0g |grep ${IMGID} &> /dev/null; then
184
+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0a |grep ${IMGID} &> /dev/null; then
179
185
echo "Image ID tested ok"
180
186
else
181
187
echo "Image ID doesn't match"
@@ -185,7 +191,7 @@ You can simply verify that image id is indeed the correct one.
185
191
186
192
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 +320,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
314
320
315
321
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.
338
338
@@ -346,7 +346,7 @@ You can lunch a node only container via environment variables:
346
346
-e SELENIUM_HUB_PORT=4444 \
347
347
-e SELENIUM_NODE_HOST=docker.host \
348
348
-e GRID=false -e CHROME=true -e FIREFOX=true \
349
-
elgalu/selenium:2.52.0g
349
+
elgalu/selenium:2.53.0a
350
350
351
351
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.
352
352
@@ -360,7 +360,7 @@ Start the grid with Chrome and Firefox
0 commit comments