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

Commit 8a1255a

Browse files
committed
Upgrade Selenium to 2.53.0
1 parent d0bbe80 commit 8a1255a

File tree

10 files changed

+120
-63
lines changed

10 files changed

+120
-63
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ Note image ids also change after scm-source.json has being updated which trigger
77
###### To get container versions
88
docker exec grid versions
99

10+
## 2.53.0a (2016-03-16)
11+
+ Upgrade Selenium to 2.53.0
12+
+ Upgrade Ubuntu xenial to 20160314.4
13+
+ Upgrade Java 9 build 9-ea+109-2016-03-09-204305.javare.4620.nc
14+
+ Upgrade BrowserStack Local to 4.9
15+
+ Upgrade Supervisor to 2016-03-06
16+
+ Image tag details:
17+
+ Selenium: v2.53.0 (35ae25b)
18+
+ Chrome stable: 49.0.2623.87
19+
+ Firefox stable: 45.0
20+
+ Chromedriver: 2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a)
21+
+ Java: Oracle Java 9 build 9-ea+109-2016-03-09-204305.javare.4620.nc
22+
+ Timezone: Europe/Berlin
23+
+ Built with: Docker version 1.10.3, build 20f81dd
24+
+ Tested on kernel host: 4.2.0-34-generic x86_64 GNU/Linux
25+
+ Image size: 2.620 GB
26+
+ FROM ubuntu:xenial-20160314.4
27+
+ Python: 2.7.11+
28+
+ Sauce Connect 4.3.13, build 1877 d9e5947
29+
+ BrowserStack Local version 4.9
30+
+ Image ID: TBD
31+
+ Digest: sha256:TBD
32+
1033
## 2.52.0g (2016-03-09)
1134
+ Upgrade Ubuntu xenial to 20160303.1
1235
+ Upgrade Firefox (major) to 45.0

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#== Ubuntu xenial is 16.04, i.e. FROM ubuntu:16.04
55
# search for more at https://registry.hub.docker.com/_/ubuntu/tags/manage/
66
# next: xenial-TBD
7-
FROM ubuntu:xenial-20160303.1
7+
FROM ubuntu:xenial-20160314.4
88
ENV UBUNTU_FLAVOR xenial
99

1010
#== Ubuntu wily is 15.10, i.e. FROM ubuntu:15.10
@@ -504,13 +504,12 @@ ENV SEL_HOME ${NORMAL_USER_HOME}/selenium
504504
# RUN apt-get update -qqy \
505505
# && apt-get -qqy install \
506506
# supervisor \
507+
# 2016-03-06 commit: e4a37c6f8d1cb6, version: supervisor-4.0.0.dev0
507508
# 2016-02-01 commit: eb904ccdb3573e, version: supervisor-4.0.0.dev0
508509
# 2015-06-24 commit: b3ad59703b554f, version: supervisor-4.0.0.dev0
509510
# 2015-08-24 commit: 304b4f388d3e3f, supervisor/version.txt: 4.0.0.dev0
510-
# https://github.com/Supervisor/supervisor/commit/b3ad59703b554fcf61639ca92
511-
# https://github.com/Supervisor/supervisor/commit/304b4f388d3e3f
512511
# TODO: Upgrade to supervisor stable 4.0 as soon as is released
513-
RUN SHA="eb904ccdb3573e22784ad36fa81de3cbd718afea" \
512+
RUN SHA="e4a37c6f8d1cb68f3813c7fdbcfee9a929788a75" \
514513
&& pip install --upgrade \
515514
"https://github.com/Supervisor/supervisor/zipball/${SHA}" \
516515
&& rm -rf /var/lib/apt/lists/*
@@ -718,7 +717,7 @@ USER ${NORMAL_USER}
718717
#==========
719718
# Selenium
720719
#==========
721-
ENV SEL_MAJOR_MINOR_VER 2.52
720+
ENV SEL_MAJOR_MINOR_VER 2.53
722721
ENV SEL_PATCH_LEVEL_VER 0
723722
RUN mkdir -p ${SEL_HOME} \
724723
&& export SELBASE="http://selenium-release.storage.googleapis.com" \
@@ -964,6 +963,9 @@ ENV FIREFOX_VERSION="${FF_VER}" \
964963
SUPERVISOR_NOT_REQUIRED_SRV_LIST2="ignoreMe" \
965964
SLEEP_SECS_AFTER_KILLING_SUPERVISORD=3 \
966965
SUPERVISOR_STOPWAITSECS=20 \
966+
SUPERVISOR_STOPSIGNAL=TERM \
967+
SUPERVISOR_KILLASGROUP=false \
968+
SUPERVISOR_STOPASGROUP=false \
967969
# Supervisor loglevel and also general docker log level
968970
# can be: debug, warn, trace, info
969971
LOG_LEVEL=info \

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* firefox stable [last 18 versions can be found here][2.47.1m]
1212
* fluxbox or openbox (lightweight window managers)
1313

14-
![docker-selenium-grid](https://cloud.githubusercontent.com/assets/111569/12307661/68313aca-ba1f-11e5-9559-341e25ddb085.png)
14+
![docker-selenium-grid](./images/grid_console_2.53.0.png)
1515

1616
## Note this repo evolved into SeleniumHQ/docker-selenium
1717
See: https://github.com/SeleniumHQ/docker-selenium
@@ -22,17 +22,23 @@ Note SeleniumHQ/docker-selenium project is more useful for building selenium gri
2222

2323
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.
2424

25-
docker pull elgalu/selenium:2.52.0g
25+
docker pull elgalu/selenium:2.53.0a
2626

2727
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 \
28-
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:2.52.0g
28+
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:2.53.0a
2929

30-
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:
3131

3232
docker exec grid wait_all_done 30s
3333

3434
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`.
3535

36+
#### Stop
37+
Shutdown gracefully
38+
39+
docker exec grid stop
40+
docker stop grid
41+
3642
### OSX
3743
Important, in Mac you need to gather the correct IP as localhost won't work unless you are in the Linux docker host machine:
3844

@@ -64,12 +70,12 @@ Supervisor exposes an http server but is not enough to bind the ports via `docke
6470
### Screen size
6571
You can set a custom screen size at docker run time by providing `SCREEN_WIDTH` and `SCREEN_HEIGHT` environment variables:
6672

67-
docker pull elgalu/selenium:2.52.0g
73+
docker pull elgalu/selenium:2.53.0a
6874

6975
docker run -d --name=grid -p 4444:24444 -p 5920:25900 \
7076
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
7177
-e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1480 \
72-
elgalu/selenium:2.52.0g
78+
elgalu/selenium:2.53.0a
7379

7480
docker exec grid wait_all_done 10s
7581

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

174180
You can simply verify that image id is indeed the correct one.
175181

176-
# e.g. full image id for tag 2.52.0g
182+
# e.g. full image id for tag 2.53.0a
177183
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
179185
echo "Image ID tested ok"
180186
else
181187
echo "Image ID doesn't match"
@@ -185,7 +191,7 @@ You can simply verify that image id is indeed the correct one.
185191

186192
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:
187193

188-
# e.g. sha256 for tag 2.52.0g
194+
# e.g. sha256 for tag 2.53.0a
189195
export SHA=<<Please see CHANGELOG.md>>
190196
docker pull elgalu/selenium@sha256:${SHA}
191197

@@ -211,7 +217,7 @@ Host machine, terminal 2:
211217
docker run --rm --name=ch -p=4444:24444 \
212218
-e SCREEN_WIDTH -e SCREEN_HEIGHT -e XE_DISP_NUM \
213219
-v /tmp/.X11-unix/X${XE_DISP_NUM}:/tmp/.X11-unix/X${XE_DISP_NUM} \
214-
elgalu/selenium:2.52.0g
220+
elgalu/selenium:2.53.0a
215221

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

@@ -233,7 +239,7 @@ ANYPORT=0
233239
REMOTE_DOCKER_SRV=localhost
234240
CONTAINER=$(docker run -d -p=0.0.0.0:${ANYPORT}:22222 -p=0.0.0.0:${ANYPORT}:24444 \
235241
-p=0.0.0.0:${ANYPORT}:25900 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola \
236-
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.52.0g
242+
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.53.0a
237243
238244
# -- Option 2.docker run- Running docker on remote docker server like in the cloud
239245
# Useful if the docker server is running in the cloud. Establish free local ports
@@ -243,7 +249,7 @@ ssh ${REMOTE_DOCKER_SRV} #get into the remote docker provider somehow
243249
# it acts as a jump host so my public key is already on that server
244250
CONTAINER=$(docker run -d -p=0.0.0.0:${ANYPORT}:22222 -e SCREEN_HEIGHT=1110 \
245251
-e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/authorized_keys)" \
246-
elgalu/selenium:2.52.0g
252+
elgalu/selenium:2.53.0a
247253
248254
# -- Common: Wait for the container to start
249255
./host-scripts/wait-docker-selenium.sh grid 7s
@@ -314,7 +320,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
314320
315321
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:
316322
317-
docker pull elgalu/selenium:2.52.0g
323+
docker pull elgalu/selenium:2.53.0a
318324
319325
#### 2. Use this image
320326

READMELeo.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Build
22

3-
time (docker build -t="elgalu/selenium:2.52.0g" . ;echo $?;beep)
4-
docker run --rm -ti -m 3000M --name=grid -p=4444:24444 -p=5920:25900 -e VIDEO=true -v /dev/shm:/dev/shm elgalu/selenium:2.52.0g
3+
time (docker build -t="elgalu/selenium:2.53.0a" . ;echo $?;beep)
4+
docker run --rm -ti -m 3000M --name=grid -p=4444:24444 -p=5920:25900 -e VIDEO=true -v /dev/shm:/dev/shm elgalu/selenium:2.53.0a
55

66
Wait and id
77

@@ -16,12 +16,12 @@ Chrome artifact
1616

1717
## Push
1818

19-
docker push elgalu/selenium:2.52.0g ;echo $?;beep
20-
docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0g | xclip -sel clip
19+
docker push elgalu/selenium:2.53.0a ;echo $?;beep
20+
docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0a | xclip -sel clip
2121
# also grab digest and update CHANGELOG.md
22-
git add CHANGELOG.md && gci "2.52.0g: Update image id and digest"
23-
docker tag -f elgalu/selenium:2.52.0g elgalu/selenium:latest
24-
docker push elgalu/selenium:latest && git tag 2.52.0g && git tag -f latest && git push && git push --tags -f
22+
git add CHANGELOG.md && gci "2.53.0a: Update image id and digest"
23+
docker tag -f elgalu/selenium:2.53.0a elgalu/selenium:latest
24+
docker push elgalu/selenium:latest && git tag 2.53.0a && git tag -f latest && git push && git push --tags -f
2525

2626
Location of binaries, e.g.
2727

@@ -36,9 +36,9 @@ Push setup, first time only:
3636

3737
Build a grid with extra nodes
3838

39-
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 -v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:2.52.0g
39+
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 -v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:2.53.0a
4040

41-
docker run --rm --name=node -e DISP_N=13 -e SSHD_PORT=22223 -e SUPERVISOR_HTTP_PORT=29003 -e VNC_PORT=25903 -e SELENIUM_NODE_CH_PORT=25330 -e SELENIUM_NODE_FF_PORT=25331 -e GRID=false -e CHROME=true -e FIREFOX=true --net=container:grid elgalu/selenium:2.52.0g
41+
docker run --rm --name=node -e DISP_N=13 -e SSHD_PORT=22223 -e SUPERVISOR_HTTP_PORT=29003 -e VNC_PORT=25903 -e SELENIUM_NODE_CH_PORT=25330 -e SELENIUM_NODE_FF_PORT=25331 -e GRID=false -e CHROME=true -e FIREFOX=true --net=container:grid elgalu/selenium:2.53.0a
4242

4343
See logs
4444

@@ -65,18 +65,18 @@ List firefox versions via docker exe
6565

6666
## To update image id and digest
6767

68-
docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0g
68+
docker inspect -f='{{.Id}}' elgalu/selenium:2.53.0a
6969
docker images --digests
7070

7171
## Run with shared dir
7272

7373
docker run --rm --name=grid -p=127.0.0.1:4460:24444 -p=127.0.0.1:5910:25900 \
74-
-v /e2e/uploads:/e2e/uploads elgalu/selenium:2.52.0g
74+
-v /e2e/uploads:/e2e/uploads elgalu/selenium:2.53.0a
7575
docker run --rm --name=grid -p=4460:24444 -p=5910:25900 \
76-
-v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium:2.52.0g
76+
-v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium:2.53.0a
7777

7878

79-
docker run --rm --name=ff -p=127.0.0.1:4461:24444 -p=127.0.0.1:5911:25900 -v /e2e/uploads:/e2e/uploads elgalu/selenium:2.52.0g
79+
docker run --rm --name=ff -p=127.0.0.1:4461:24444 -p=127.0.0.1:5911:25900 -v /e2e/uploads:/e2e/uploads elgalu/selenium:2.53.0a
8080

8181
## Run without shared dir and bind ports to all network interfaces
8282

@@ -99,11 +99,11 @@ List firefox versions via docker exe
9999
## Run without dir and bind to all interfaces
100100
Note anything after the image will be taken as arguments for the cmd/entrypoint
101101

102-
docker run --rm --name=grid -p=0.0.0.0:8813:8484 -p=0.0.0.0:2222:2222 -p=0.0.0.0:4470:24444 -p=0.0.0.0:5920:25900 -e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.52.0g
102+
docker run --rm --name=grid -p=0.0.0.0:8813:8484 -p=0.0.0.0:2222:2222 -p=0.0.0.0:4470:24444 -p=0.0.0.0:5920:25900 -e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.53.0a
103103

104-
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola elgalu/selenium:2.52.0g
105-
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:2.52.0g
106-
docker run --rm --name=grid -p=0.0.0.0:4470:24444 -p=0.0.0.0:5920:25900 --add-host myserver.dev:172.17.42.1 elgalu/selenium:2.52.0g
104+
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola elgalu/selenium:2.53.0a
105+
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:2.53.0a
106+
docker run --rm --name=grid -p=0.0.0.0:4470:24444 -p=0.0.0.0:5920:25900 --add-host myserver.dev:172.17.42.1 elgalu/selenium:2.53.0a
107107

108108
However adding a custom host IP to server-selenium.local (e.g. bsele ssh config) is more work:
109109

@@ -112,18 +112,18 @@ However adding a custom host IP to server-selenium.local (e.g. bsele ssh config)
112112

113113
vncv localhost:5920 -Scaling=60% &
114114

115-
docker run --rm --name=ff -p=0.0.0.0:4471:24444 -p=0.0.0.0:5921:25900 elgalu/selenium:2.52.0g
115+
docker run --rm --name=ff -p=0.0.0.0:4471:24444 -p=0.0.0.0:5921:25900 elgalu/selenium:2.53.0a
116116

117117
Automatic builds not working for me right now, maybe there is an issue with docker registry v1 vs v2
118118
https://registry.hub.docker.com/u/elgalu/docker-selenium/builds_history/31621/
119119

120120
## Pulling
121121

122-
docker pull registry.hub.docker.com/elgalu/selenium:2.52.0g
122+
docker pull registry.hub.docker.com/elgalu/selenium:2.53.0a
123123

124124
## Pull
125125

126-
docker run -d --name=max -p=0.0.0.0:4411:24444 -p=0.0.0.0:5911:25900 elgalu/selenium:2.52.0g
126+
docker run -d --name=max -p=0.0.0.0:4411:24444 -p=0.0.0.0:5911:25900 elgalu/selenium:2.53.0a
127127

128128
How to connect through vnc (need a vnc client)
129129

@@ -332,7 +332,7 @@ https://github.com/rogaha/docker-desktop/blob/master/Dockerfile#L38
332332
You can launch a grid only container via environment variables:
333333

334334
docker run --rm --name=hub -p 4444:24444 -p 5930:25900 \
335-
-e CHROME=false -e FIREFOX=false elgalu/selenium:2.52.0g
335+
-e CHROME=false -e FIREFOX=false elgalu/selenium:2.53.0a
336336

337337
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.
338338

@@ -346,7 +346,7 @@ You can lunch a node only container via environment variables:
346346
-e SELENIUM_HUB_PORT=4444 \
347347
-e SELENIUM_NODE_HOST=docker.host \
348348
-e GRID=false -e CHROME=true -e FIREFOX=true \
349-
elgalu/selenium:2.52.0g
349+
elgalu/selenium:2.53.0a
350350

351351
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.
352352

@@ -360,7 +360,7 @@ Start the grid with Chrome and Firefox
360360
-e SELENIUM_NODE_CH_PORT=25010 -e SELENIUM_NODE_FF_PORT=26010 \
361361
-e GRID=true -e CHROME=true -e FIREFOX=true \
362362
-e VNC_PASSWORD=hola -e VNC_PORT=5810 \
363-
-v /dev/shm:/dev/shm elgalu/selenium:2.52.0g
363+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0a
364364

365365
Add another docker container node with 2 more browsers:
366366

@@ -370,7 +370,7 @@ Add another docker container node with 2 more browsers:
370370
-e SELENIUM_NODE_CH_PORT=25020 -e SELENIUM_NODE_FF_PORT=26020 \
371371
-e GRID=false -e CHROME=true -e FIREFOX=true \
372372
-e VNC_PASSWORD=hola -e VNC_PORT=5820 \
373-
-v /dev/shm:/dev/shm elgalu/selenium:2.52.0g
373+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0a
374374

375375
And another
376376

@@ -380,7 +380,7 @@ And another
380380
-e SELENIUM_NODE_CH_PORT=25030 -e SELENIUM_NODE_FF_PORT=26030 \
381381
-e GRID=false -e CHROME=true -e FIREFOX=true \
382382
-e VNC_PASSWORD=hola -e VNC_PORT=5830 \
383-
-v /dev/shm:/dev/shm elgalu/selenium:2.52.0g
383+
-v /dev/shm:/dev/shm elgalu/selenium:2.53.0a
384384

385385
### noVNC
386386

@@ -392,7 +392,7 @@ You need to pass the environment variable `-e NOVNC=true` in order to start the
392392

393393
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 \
394394
-p 6080:26080 -e NOVNC=true \
395-
elgalu/selenium:2.52.0g
395+
elgalu/selenium:2.53.0a
396396

397397
If the VNC password was randomly generated find out with
398398

bin/entry.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,19 @@ if [ $WHOAMI_EXIT_CODE != 0 ]; then
109109
echo "-- INFO: Will try to fix uid before continuing"
110110
# TODO: fix it ...
111111
echo "-- now will try to use NORMAL_USER: '$NORMAL_USER' to continue"
112-
exec ${RUN_PREFIX} run-supervisord.sh
112+
exec ${RUN_PREFIX} run-supervisord.sh --nodaemon
113113
else
114114
echo "-- WARN: You seem to be running docker -u {{some-non-existing-user-in-container}}"
115115
echo "-- will try to use NORMAL_USER: '$NORMAL_USER' instead."
116-
exec ${RUN_PREFIX} run-supervisord.sh
116+
exec ${RUN_PREFIX} run-supervisord.sh --nodaemon
117117
fi
118118
elif [ "$WHOAMI" = "root" ]; then
119119
echo "-- WARN: Container running user is 'root' so switching to less privileged one"
120120
echo "-- will use NORMAL_USER: '$NORMAL_USER' instead."
121-
exec ${RUN_PREFIX} run-supervisord.sh
121+
exec ${RUN_PREFIX} run-supervisord.sh --nodaemon
122122
else
123123
echo "-- INFO: Will use \$USER '$USER' and \$(whoami) is '$WHOAMI'"
124-
exec run-supervisord.sh
124+
exec run-supervisord.sh --nodaemon
125125
fi
126126

127127
# Note: sudo -i creates a login shell for someUser, which implies the following:

bin/stop

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
# First stop video recording because it needs some time to flush it
4+
supervisorctl -c /etc/supervisor/supervisord.conf stop video-rec || true
5+
6+
# Now stop the rest
7+
supervisorctl -c /etc/supervisor/supervisord.conf stop all
8+
9+
# Finally kill supervisor
10+
killall supervisord

docs/videos.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
### Pull
66
Pull image
77

8-
docker pull elgalu/selenium:2.52.0g
8+
docker pull elgalu/selenium:2.53.0a
99

1010
### Run
1111
Run a new grid
1212

1313
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 \
1414
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
15-
-e VIDEO=true elgalu/selenium:2.52.0g
15+
-e VIDEO=true elgalu/selenium:2.53.0a
1616

1717
### Wait
1818
Wait for the grid to start
@@ -39,6 +39,7 @@ However is better to stop the video service first then copy the videos to the ho
3939
docker cp grid:/videos/. videos
4040

4141
### Finalize
42+
docker exec grid stop
4243
docker stop grid
4344

4445
### View

images/grid_console_2.53.0.png

78.1 KB
Loading

0 commit comments

Comments
 (0)