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
+17-17Lines changed: 17 additions & 17 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.48.2h
25
+
docker pull elgalu/selenium:2.48.2i
26
26
27
27
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 \
Make sure `docker run` finishes with **selenium all done and ready for testing** else you won't be able to start your tests. To perform this check programatically please use this command where `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.48.2h
67
+
docker pull elgalu/selenium:2.48.2i
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.48.2h
72
+
elgalu/selenium:2.48.2i
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.48.2h
126
+
elgalu/selenium:2.48.2i
127
127
128
128
If the VNC password was randomly generated find out with
129
129
@@ -136,7 +136,7 @@ If the VNC password was randomly generated find out with
136
136
You can launch a grid only container via environment variables:
137
137
138
138
docker run --rm --name=hub -p 4444:24444 -p 5930:25900 \
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.
142
142
@@ -150,7 +150,7 @@ You can lunch a node only container via environment variables:
150
150
-e SELENIUM_HUB_PORT=4444 \
151
151
-e SELENIUM_NODE_HOST=docker.host \
152
152
-e GRID=false -e CHROME=true -e FIREFOX=true \
153
-
elgalu/selenium:2.48.2h
153
+
elgalu/selenium:2.48.2i
154
154
155
155
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.
156
156
@@ -164,7 +164,7 @@ Start the grid with Chrome and Firefox
@@ -223,9 +223,9 @@ There are also additional steps you can take to ensure you're using the correct
223
223
224
224
You can simply verify that image id is indeed the correct one.
225
225
226
-
# e.g. full image id for tag 2.48.2h
226
+
# e.g. full image id for tag 2.48.2i
227
227
export IMGID="<<Please see CHANGELOG.md>>"
228
-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.48.2h |grep ${IMGID} &> /dev/null; then
228
+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.48.2i |grep ${IMGID} &> /dev/null; then
229
229
echo "Image ID tested ok"
230
230
else
231
231
echo "Image ID doesn't match"
@@ -235,7 +235,7 @@ You can simply verify that image id is indeed the correct one.
235
235
236
236
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:
@@ -364,7 +364,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
364
364
365
365
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