Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit f57ae28

Browse files
committed
Merge branch 'master' of github.com:elgalu/docker-selenium
2 parents 51a73f3 + ae63408 commit f57ae28

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In general: add `sudo` only if needed in your environment and `--privileged` if
2828
If your setup is correct, privileged mode and sudo should not be necessary:
2929

3030
docker run --rm --name=ch -p=4444:24444 -p=5920:25900 \
31-
elgalu/selenium:2.47.1f
31+
elgalu/selenium:2.47.1g
3232

3333
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 `ch` is the name of the container:
3434

@@ -89,11 +89,11 @@ If the VNC password was randomly generated find out with
8989
## Grid
9090
## Hub
9191

92-
You can lunch a grid only container via environment variables:
92+
You can launch a grid only container via environment variables:
9393

9494
docker run --rm --name=hub -p 4444:24444 -p 5930:25900 -p 2223:22222 \
9595
-p=6081:26080 -e CHROME=false -e FIREFOX=false \
96-
elgalu/selenium:2.47.1f
96+
elgalu/selenium:2.47.1g
9797

9898
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.
9999

@@ -109,7 +109,7 @@ You can lunch a node only container via environment variables:
109109
-p 25550:25550 -p 25551:25551 \
110110
-e GRID=false -e CHROME=true -e FIREFOX=true \
111111
-v $(pwd)/videos:/videos \
112-
elgalu/selenium:2.47.1f
112+
elgalu/selenium:2.47.1g
113113

114114
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.
115115

@@ -146,9 +146,9 @@ There are also additional steps you can take to ensure you're using the correct
146146

147147
You can simply verify that image id is indeed the correct one.
148148

149-
# e.g. full image id for tag 2.47.1f
149+
# e.g. full image id for tag 2.47.1g
150150
export IMGID=TBD
151-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.47.1f |grep ${IMGID} &> /dev/null; then
151+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.47.1g |grep ${IMGID} &> /dev/null; then
152152
echo "Image ID tested ok"
153153
else
154154
echo "Image ID doesn't match"
@@ -158,7 +158,7 @@ You can simply verify that image id is indeed the correct one.
158158

159159
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:
160160

161-
# e.g. sha256 for tag 2.47.1f
161+
# e.g. sha256 for tag 2.47.1g
162162
export SHA=TBD
163163
docker pull elgalu/selenium@sha256:${SHA}
164164

@@ -184,7 +184,7 @@ Host machine, terminal 2:
184184
docker run --rm --name=ch -p=4444:24444 \
185185
-e SCREEN_WIDTH -e SCREEN_HEIGHT -e XE_DISP_NUM \
186186
-v /tmp/.X11-unix/X${XE_DISP_NUM}:/tmp/.X11-unix/X${XE_DISP_NUM} \
187-
elgalu/selenium:2.47.1f
187+
elgalu/selenium:2.47.1g
188188

189189
Now when you run your tests instead of connecting. If docker run fails try `xhost +`
190190

@@ -206,7 +206,7 @@ ANYPORT=0
206206
REMOTE_DOCKER_SRV=localhost
207207
CONTAINER=$(docker run -d -p=0.0.0.0:${ANYPORT}:22222 -p=0.0.0.0:${ANYPORT}:24444 \
208208
-p=0.0.0.0:${ANYPORT}:25900 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola \
209-
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.47.1f
209+
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.47.1g
210210
211211
# -- Option 2.docker run- Running docker on remote docker server like in the cloud
212212
# Useful if the docker server is running in the cloud. Establish free local ports
@@ -216,7 +216,7 @@ ssh ${REMOTE_DOCKER_SRV} #get into the remote docker provider somehow
216216
# it acts as a jump host so my public key is already on that server
217217
CONTAINER=$(docker run -d -p=0.0.0.0:${ANYPORT}:22222 -e SCREEN_HEIGHT=1110 \
218218
-e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/authorized_keys)" \
219-
elgalu/selenium:2.47.1f
219+
elgalu/selenium:2.47.1g
220220
221221
# -- Common: Wait for the container to start
222222
./host-scripts/wait-docker-selenium.sh ch 7s
@@ -287,7 +287,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
287287
288288
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:
289289
290-
docker pull elgalu/selenium:2.47.1f
290+
docker pull elgalu/selenium:2.47.1g
291291
292292
#### 2. Use this image
293293

0 commit comments

Comments
 (0)