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

Commit aaed56f

Browse files
committed
Upgrade Chrome to 49.0.2623.75
1 parent 880dc49 commit aaed56f

File tree

6 files changed

+60
-42
lines changed

6 files changed

+60
-42
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,25 @@ 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.52.0f (2016-03-02)
11+
+ Upgrade Chrome to 49.0.2623.75
12+
+ Image tag details:
13+
+ Selenium: v2.52.0 (4c2593c)
14+
+ Chrome stable: 49.0.2623.75
15+
+ Firefox stable: 44.0.2
16+
+ Chromedriver: 2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a)
17+
+ Java: Oracle Java 9 build 9-ea+102-2016-01-21-001533.javare.4316.nc
18+
+ Timezone: Europe/Berlin
19+
+ Built with: Docker version 1.9.1, build a34a1d5
20+
+ Tested on kernel host: 4.2.0-32-generic x86_64 GNU/Linux
21+
+ Image size: 2.603 GB
22+
+ FROM ubuntu:xenial-20160226
23+
+ Python: 2.7.11+
24+
+ Sauce Connect 4.3.13, build 1877 d9e5947
25+
+ BrowserStack Local version 4.8
26+
+ Image ID: TBD
27+
+ Digest: sha256:TBD
28+
1029
## 2.52.0e (2016-02-29)
1130
+ Upgrade Ubuntu xenial to 20160226
1231
+ Image tag details:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ RUN mkdir -p ${NORMAL_USER_HOME}/tmp && cd ${NORMAL_USER_HOME}/tmp \
703703
# TODO: Use Google fingerprint to verify downloads
704704
# http://www.google.de/linuxrepositories/
705705
# Also fix .deb file names with correct version
706-
RUN latest_chrome_version_trigger="48.0.2564.116" \
706+
RUN latest_chrome_version_trigger="49.0.2623.75" \
707707
&& mkdir -p ${NORMAL_USER_HOME}/chrome-deb \
708708
&& export CHROME_URL="https://dl.google.com/linux/direct" \
709709
&& wget --no-verbose -O \

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ 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.0e
25+
docker pull elgalu/selenium:2.52.0f
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.0e
28+
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:2.52.0f
2929

3030
Make sure `docker run` finishes via active wait with below command. Note `grid` is the name of the container:
3131

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

67-
docker pull elgalu/selenium:2.52.0e
67+
docker pull elgalu/selenium:2.52.0f
6868

6969
docker run -d --name=grid -p 4444:24444 -p 5920:25900 \
7070
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola \
7171
-e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1480 \
72-
elgalu/selenium:2.52.0e
72+
elgalu/selenium:2.52.0f
7373

7474
docker exec grid wait_all_done 10s
7575

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

124124
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 \
125125
-p 6080:26080 -e NOVNC=true \
126-
elgalu/selenium:2.52.0e
126+
elgalu/selenium:2.52.0f
127127

128128
If the VNC password was randomly generated find out with
129129

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

191191
You can simply verify that image id is indeed the correct one.
192192

193-
# e.g. full image id for tag 2.52.0e
193+
# e.g. full image id for tag 2.52.0f
194194
export IMGID="<<Please see CHANGELOG.md>>"
195-
if docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0e |grep ${IMGID} &> /dev/null; then
195+
if docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0f |grep ${IMGID} &> /dev/null; then
196196
echo "Image ID tested ok"
197197
else
198198
echo "Image ID doesn't match"
@@ -202,7 +202,7 @@ You can simply verify that image id is indeed the correct one.
202202

203203
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:
204204

205-
# e.g. sha256 for tag 2.52.0e
205+
# e.g. sha256 for tag 2.52.0f
206206
export SHA=<<Please see CHANGELOG.md>>
207207
docker pull elgalu/selenium@sha256:${SHA}
208208

@@ -228,7 +228,7 @@ Host machine, terminal 2:
228228
docker run --rm --name=ch -p=4444:24444 \
229229
-e SCREEN_WIDTH -e SCREEN_HEIGHT -e XE_DISP_NUM \
230230
-v /tmp/.X11-unix/X${XE_DISP_NUM}:/tmp/.X11-unix/X${XE_DISP_NUM} \
231-
elgalu/selenium:2.52.0e
231+
elgalu/selenium:2.52.0f
232232

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

@@ -250,7 +250,7 @@ ANYPORT=0
250250
REMOTE_DOCKER_SRV=localhost
251251
CONTAINER=$(docker run -d -p=0.0.0.0:${ANYPORT}:22222 -p=0.0.0.0:${ANYPORT}:24444 \
252252
-p=0.0.0.0:${ANYPORT}:25900 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola \
253-
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.52.0e
253+
-e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.52.0f
254254
255255
# -- Option 2.docker run- Running docker on remote docker server like in the cloud
256256
# Useful if the docker server is running in the cloud. Establish free local ports
@@ -260,7 +260,7 @@ ssh ${REMOTE_DOCKER_SRV} #get into the remote docker provider somehow
260260
# it acts as a jump host so my public key is already on that server
261261
CONTAINER=$(docker run -d -p=0.0.0.0:${ANYPORT}:22222 -e SCREEN_HEIGHT=1110 \
262262
-e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/authorized_keys)" \
263-
elgalu/selenium:2.52.0e
263+
elgalu/selenium:2.52.0f
264264
265265
# -- Common: Wait for the container to start
266266
./host-scripts/wait-docker-selenium.sh grid 7s
@@ -331,7 +331,7 @@ If you git clone this repo locally, i.e. cd into where the Dockerfile is, you ca
331331
332332
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:
333333
334-
docker pull elgalu/selenium:2.52.0e
334+
docker pull elgalu/selenium:2.52.0f
335335
336336
#### 2. Use this image
337337

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.0e" . ;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.0e
3+
time (docker build -t="elgalu/selenium:2.52.0f" . ;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.0f
55

66
Wait and id
77

@@ -10,18 +10,18 @@ Wait and id
1010

1111
Chrome artifact
1212

13-
VER="48.0.2564.116"
13+
VER="49.0.2623.75"
1414
wget -nv --show-progress -O binaries/google-chrome-stable_${VER}_amd64.deb "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
1515
#old: docker cp grid:/home/application/chrome-deb/. binaries/
1616

1717
## Push
1818

19-
docker push elgalu/selenium:2.52.0e ;echo $?;beep
20-
docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0e | xclip -sel clip
19+
docker push elgalu/selenium:2.52.0f ;echo $?;beep
20+
docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0f | xclip -sel clip
2121
# also grab digest and update CHANGELOG.md
22-
git add CHANGELOG.md && gci "2.52.0e: Update image id and digest"
23-
docker tag elgalu/selenium:2.52.0e elgalu/selenium:latest
24-
docker push elgalu/selenium:latest && git tag 2.52.0e && git tag -f latest && git push && git push --tags -f
22+
git add CHANGELOG.md && gci "2.52.0f: Update image id and digest"
23+
docker tag elgalu/selenium:2.52.0f elgalu/selenium:latest
24+
docker push elgalu/selenium:latest && git tag 2.52.0f && 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.0e
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.0f
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.0e
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.0f
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.0e
68+
docker inspect -f='{{.Id}}' elgalu/selenium:2.52.0f
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.0e
74+
-v /e2e/uploads:/e2e/uploads elgalu/selenium:2.52.0f
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.0e
76+
-v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium:2.52.0f
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.0e
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.0f
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.0e
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.0f
103103

104-
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola elgalu/selenium:2.52.0e
105-
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:2.52.0e
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.0e
104+
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola elgalu/selenium:2.52.0f
105+
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:2.52.0f
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.0f
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.0e
115+
docker run --rm --name=ff -p=0.0.0.0:4471:24444 -p=0.0.0.0:5921:25900 elgalu/selenium:2.52.0f
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.0e
122+
docker pull registry.hub.docker.com/elgalu/selenium:2.52.0f
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.0e
126+
docker run -d --name=max -p=0.0.0.0:4411:24444 -p=0.0.0.0:5911:25900 elgalu/selenium:2.52.0f
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.0e
335+
-e CHROME=false -e FIREFOX=false elgalu/selenium:2.52.0f
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.0e
349+
elgalu/selenium:2.52.0f
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.0e
363+
-v /dev/shm:/dev/shm elgalu/selenium:2.52.0f
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.0e
373+
-v /dev/shm:/dev/shm elgalu/selenium:2.52.0f
374374

375375
And another
376376

@@ -380,4 +380,4 @@ 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.0e
383+
-v /dev/shm:/dev/shm elgalu/selenium:2.52.0f

bin/entry.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ docker_alongside_docker.sh
8686
# Fix running user
8787
#------------------
8888
RUN_PREFIX="sudo -E HOME=/home/$NORMAL_USER -u $NORMAL_USER"
89-
RUN_START="${RUN_PREFIX} $BIN_UTILS/start.sh"
9089
WHOAMI=$(whoami)
9190
WHOAMI_EXIT_CODE=$?
9291
echo "-- INFO: Container USER var is: '$USER', \$(whoami) returns '$WHOAMI', UID is '$UID'"

docs/videos.md

Lines changed: 2 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.0e
8+
docker pull elgalu/selenium:2.52.0f
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.0e
15+
-e VIDEO=true elgalu/selenium:2.52.0f
1616

1717
### Wait
1818
Wait for the grid to start

0 commit comments

Comments
 (0)