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
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,11 +45,11 @@ A [new chromium headless project](https://github.com/electron/electron/issues/22
45
45
46
46
1. Pull the image and run the container
47
47
48
-
docker pull elgalu/selenium:2.53.0q
48
+
docker pull elgalu/selenium:2.53.0r
49
49
50
50
docker run -d --name=grid -p 4444:24444 -p 5900:25900 \
51
51
-e TZ="US/Pacific" -e VNC_PASSWORD=hola \
52
-
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0q
52
+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0r
53
53
54
54
2. Wait until the grid starts properly before starting the tests _(Optional but recommended)_
55
55
@@ -75,7 +75,7 @@ This image is designed to run one test on each docker container but if you still
75
75
docker run --rm -ti --name=grid -p 4444:24444 -p 5900:25900 \
76
76
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
77
77
-e MAX_INSTANCES=20 -e MAX_SESSIONS=20 \
78
-
elgalu/selenium:2.53.0q
78
+
elgalu/selenium:2.53.0r
79
79
80
80
The drawback is that all tests will run on the same desktop meaning the video recording will only capture the browser in the foreground but it's in the roadmap to make all this transparent, see issues [#78](https://github.com/elgalu/docker-selenium/issues/78) and [#77](https://github.com/elgalu/docker-selenium/issues/77).
81
81
@@ -97,7 +97,7 @@ You can also ssh into the machine as long as `SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa
97
97
docker run --rm -ti --name=grid -p=4444:24444 -p=5900:25900 -p=22222:22222 \
98
98
-e SSHD=true \
99
99
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" \
100
-
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0q
100
+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0r
101
101
102
102
Then
103
103
@@ -108,7 +108,7 @@ Include `-X` in ssh command if you want to redirect the started GUI programs to
108
108
docker run --rm -ti --name=grid -p=4444:24444 -p=5900:25900 -p=22222:22222 \
109
109
-e SSHD=true -e SSHD_X11FORWARDING=yes \
110
110
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" \
111
-
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0q
111
+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0r
112
112
113
113
Then
114
114
@@ -126,12 +126,12 @@ Supervisor exposes an http server but is not enough to bind the ports via `docke
126
126
### Screen size
127
127
You can set a custom screen size at docker run time by providing `SCREEN_WIDTH` and `SCREEN_HEIGHT` environment variables:
128
128
129
-
docker pull elgalu/selenium:2.53.0q
129
+
docker pull elgalu/selenium:2.53.0r
130
130
131
131
docker run -d --name=grid -p 4444:24444 -p 5900:25900 \
132
132
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
133
133
-e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1480 \
134
-
elgalu/selenium:2.53.0q
134
+
elgalu/selenium:2.53.0r
135
135
136
136
docker exec grid wait_all_done 10s
137
137
@@ -142,7 +142,7 @@ You can control and modify the timezone on a container by using the [TZ](https:/
142
142
143
143
docker run --rm -ti --name=grid -p 4444:24444 -p 5900:25900 \
144
144
-e TZ="US/Pacific" -e VNC_PASSWORD=hola \
145
-
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0q
145
+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0r
146
146
147
147
Examples:
148
148
@@ -210,7 +210,7 @@ You need to pass the environment variable `-e NOVNC=true` in order to start the
210
210
211
211
docker run --rm -ti --name=grid -p 4444:24444 -p 5900:25900 \
If the VNC password was randomly generated find out with
216
216
@@ -283,9 +283,9 @@ There are also additional steps you can take to ensure you're using the correct
283
283
284
284
You can simply verify that image id is indeed the correct one.
285
285
286
-
# e.g. full image id for tag 2.53.0q
286
+
# e.g. full image id for tag 2.53.0r
287
287
export IMGID="<<Please see CHANGELOG.md>>"
288
-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0q |grep ${IMGID} &> /dev/null; then
288
+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0r |grep ${IMGID} &> /dev/null; then
289
289
echo "Image ID tested ok"
290
290
else
291
291
echo "Image ID doesn't match"
@@ -295,7 +295,7 @@ You can simply verify that image id is indeed the correct one.
295
295
296
296
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:
@@ -430,7 +430,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
430
430
431
431
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:
432
432
433
-
docker pull elgalu/selenium:2.53.0q
433
+
docker pull elgalu/selenium:2.53.0r
434
434
435
435
### 2. Use this image
436
436
@@ -496,6 +496,11 @@ However this may not work for you and simply want to share the same DNS name res
496
496
497
497
So `--pid=host` is included to avoid https://github.com/docker/docker/issues/5899 `sudo: unable to send audit message: Operation not permitted`
498
498
499
+
#### DNS example
500
+
501
+
docker run -d --net=host --pid=host --name=grid -v /dev/shm:/dev/shm elgalu/selenium:2.53.0r
0 commit comments