@@ -11,7 +11,7 @@ We are doing prereleases on a regular basis to get early feedback. This means th
11
11
can be currently at a different alpha version (e.g. bindings on Alpha 6, and these Docker images on prerelease Alpha 7).
12
12
13
13
Docker images for Grid 4 come with a handful of tags to simplify its usage, have a look at them in one of
14
- our [ prereleases] ( https://github.com/SeleniumHQ/docker-selenium/releases/tag/4.0.0-alpha-7-prerelease-20200921 )
14
+ our [ prereleases] ( https://github.com/SeleniumHQ/docker-selenium/releases/tag/4.0.0-alpha-7-prerelease-20201009 )
15
15
16
16
To get notifications of new prereleases, add yourself as a watcher of "Releases only".
17
17
@@ -31,9 +31,9 @@ https://www.selenium.dev/support/
31
31
1 . Start a Docker container with Firefox
32
32
33
33
``` bash
34
- $ docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200921
34
+ $ docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20201009
35
35
# OR
36
- $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200921
36
+ $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20201009
37
37
```
38
38
39
39
2 . Point your WebDriver tests to http://localhost:4444/wd/hub
60
60
61
61
![ Firefox] ( https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_24x24.png ) Firefox
62
62
``` bash
63
- $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200921
63
+ $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20201009
64
64
```
65
65
66
66
![ Chrome] ( https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_24x24.png ) Chrome
67
67
``` bash
68
- $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-7-prerelease-20200921
68
+ $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-7-prerelease-20201009
69
69
```
70
70
71
71
![ Opera] ( https://raw.githubusercontent.com/alrra/browser-logos/main/src/opera/opera_24x24.png ) Opera
72
72
``` bash
73
- $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-opera:4.0.0-alpha-7-prerelease-20200921
73
+ $ docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-opera:4.0.0-alpha-7-prerelease-20201009
74
74
```
75
75
76
76
_ Note: Only one Standalone container can run on port_ ` 4444 ` _ at the same time._
@@ -87,20 +87,20 @@ A Docker [network](https://docs.docker.com/engine/reference/commandline/network_
87
87
88
88
``` bash
89
89
$ docker network create grid
90
- $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20200921
90
+ $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20201009
91
91
$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
92
92
-e SE_EVENT_BUS_PUBLISH_PORT=4442 \
93
93
-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
94
94
-v /dev/shm:/dev/shm \
95
- selenium/node-chrome:4.0.0-alpha-7-prerelease-20200921
95
+ selenium/node-chrome:4.0.0-alpha-7-prerelease-20201009
96
96
$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
97
97
-e SE_EVENT_BUS_PUBLISH_PORT=4442 \
98
98
-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
99
- -v /dev/shm:/dev/shm selenium/node-firefox:4.0.0-alpha-7-prerelease-20200921
99
+ -v /dev/shm:/dev/shm selenium/node-firefox:4.0.0-alpha-7-prerelease-20201009
100
100
$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
101
101
-e SE_EVENT_BUS_PUBLISH_PORT=4442 \
102
102
-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
103
- -v /dev/shm:/dev/shm selenium/node-opera:4.0.0-alpha-7-prerelease-20200921
103
+ -v /dev/shm:/dev/shm selenium/node-opera:4.0.0-alpha-7-prerelease-20201009
104
104
```
105
105
106
106
When you are done using the Grid, and the containers have exited, the network can be removed with the following command:
@@ -156,9 +156,9 @@ You can save this file locally and name it, for example, `config.toml`.
156
156
# Configs have a mapping between the Docker image to use and the capabilities that need to be matched to
157
157
# start a container with the given image.
158
158
configs = [
159
- " selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200921 " , " {\" browserName\" : \" firefox\" }" ,
160
- " selenium/standalone-chrome:4.0.0-alpha-7-prerelease-20200921 " , " {\" browserName\" : \" chrome\" }" ,
161
- " selenium/standalone-opera:4.0.0-alpha-7-prerelease-20200921 " , " {\" browserName\" : \" operablink\" }"
159
+ " selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20201009 " , " {\" browserName\" : \" firefox\" }" ,
160
+ " selenium/standalone-chrome:4.0.0-alpha-7-prerelease-20201009 " , " {\" browserName\" : \" chrome\" }" ,
161
+ " selenium/standalone-opera:4.0.0-alpha-7-prerelease-20201009 " , " {\" browserName\" : \" operablink\" }"
162
162
]
163
163
164
164
# URL for connecting to the docker daemon
@@ -177,12 +177,12 @@ virtual machines.
177
177
178
178
``` bash
179
179
$ docker network create grid
180
- $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-7-20200921
180
+ $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-7-20201009
181
181
$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
182
182
-e SE_EVENT_BUS_PUBLISH_PORT=4442 \
183
183
-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
184
184
-v ${PWD} /config.toml:/opt/bin/config.toml \
185
- selenium/node-docker:4.0.0-alpha-7-20200921
185
+ selenium/node-docker:4.0.0-alpha-7-20201009
186
186
```
187
187
188
188
When you are done using the Grid, and the containers have exited, the network can be removed with the following command:
@@ -197,14 +197,14 @@ $ docker network rm grid
197
197
``` bash
198
198
docker run --rm -ti --name selenium-docker -p 4444:4444 \
199
199
-v ${PWD} /config.toml:/opt/bin/config.toml \
200
- selenium/standalone-docker:4.0.0-alpha-7-20200921
200
+ selenium/standalone-docker:4.0.0-alpha-7-20201009
201
201
```
202
202
203
203
___
204
204
205
205
## Video recording ![ BETA] ( https://img.shields.io/badge/beta!-blue?style=for-the-badge )
206
206
207
- It is possible to record your tests running in containers by using the ` selenium/video:ffmpeg-4.3.1-20200921 `
207
+ It is possible to record your tests running in containers by using the ` selenium/video:ffmpeg-4.3.1-20201009 `
208
208
Docker image. One container is needed per each container where a browser is running. This means if you are
209
209
running 5 Nodes/Standalone containers, you will need 5 video containers, the mapping is 1-1.
210
210
@@ -230,8 +230,8 @@ This example shows how to start the containers manually:
230
230
231
231
``` bash
232
232
$ docker network create grid
233
- $ docker run -d -p 4444:4444 -p 6900:5900 --net grid --name selenium -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-7-20200921
234
- $ docker run -d --net grid --name video -v /tmp/videos:/videos selenium/video:ffmpeg-4.3.1-20200921
233
+ $ docker run -d -p 4444:4444 -p 6900:5900 --net grid --name selenium -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-7-20201009
234
+ $ docker run -d --net grid --name video -v /tmp/videos:/videos selenium/video:ffmpeg-4.3.1-20201009
235
235
# Run your tests
236
236
$ docker stop video && docker rm video
237
237
$ docker stop selenium && docker rm selenium
@@ -258,15 +258,15 @@ ___
258
258
You can pass ` SE_OPTS ` variable with additional commandline parameters for starting a hub or a node.
259
259
260
260
``` bash
261
- $ docker run -d -p 4444:4444 -e SE_OPTS=" -debug" --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20200921
261
+ $ docker run -d -p 4444:4444 -e SE_OPTS=" -debug" --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20201009
262
262
```
263
263
264
264
### JAVA_OPTS Java Environment Options
265
265
266
266
You can pass ` JAVA_OPTS ` environment variable to java process.
267
267
268
268
``` bash
269
- $ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20200921
269
+ $ docker run -d -p 4444:4444 -e JAVA_OPTS=-Xmx512m --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20201009
270
270
```
271
271
272
272
### Node configuration options
@@ -282,7 +282,7 @@ variables.
282
282
Here is an example with the default values of these environment variables:
283
283
284
284
``` bash
285
- $ docker run -d --e SE_EVENT_BUS_HOST=< event_bus_ip| event_bus_name> -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-7-prerelease-20200921
285
+ $ docker run -d --e SE_EVENT_BUS_HOST=< event_bus_ip| event_bus_name> -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-7-prerelease-20201009
286
286
```
287
287
288
288
### Setting Screen Resolution
@@ -337,11 +337,11 @@ current one._
337
337
338
338
``` bash
339
339
$ docker network create grid
340
- $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20200921
340
+ $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.0.0-alpha-7-prerelease-20201009
341
341
$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
342
342
-e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
343
343
-v /dev/shm:/dev/shm \
344
- -v /e2e/uploads:/e2e/uploads selenium/node-firefox:4.0.0-alpha-7-prerelease-20200921
344
+ -v /e2e/uploads:/e2e/uploads selenium/node-firefox:4.0.0-alpha-7-prerelease-20201009
345
345
```
346
346
347
347
_ Note:_ ` -v /e2e/uploads:/e2e/uploads ` _ is optional in case you are testing browser uploads on your
@@ -422,10 +422,10 @@ $ docker network create grid
422
422
$ docker run -d -p 4444:4444 --net grid --name selenium-hub \
423
423
--health-cmd=' /opt/bin/check-grid.sh --host 0.0.0.0 --port 4444' \
424
424
--health-interval=15s --health-timeout=30s --health-retries=5 \
425
- selenium/hub:4.0.0-alpha-7-prerelease-20200921
426
- $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-7-prerelease-20200921
427
- $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-firefox:4.0.0-alpha-7-prerelease-20200921
428
- $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-opera:4.0.0-alpha-7-prerelease-20200921
425
+ selenium/hub:4.0.0-alpha-7-prerelease-20201009
426
+ $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-chrome:4.0.0-alpha-7-prerelease-20201009
427
+ $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-firefox:4.0.0-alpha-7-prerelease-20201009
428
+ $ docker run -d --net grid -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-opera:4.0.0-alpha-7-prerelease-20201009
429
429
```
430
430
** Note:** The ` \ ` line delimiter won't work on Windows based terminals, try either ` ^ ` or a backtick.
431
431
@@ -489,9 +489,9 @@ running inside the container.
489
489
490
490
Here is an example with the standalone images, the same concept applies to the node images.
491
491
``` bash
492
- $ docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-7-prerelease-20200921
493
- $ docker run -d -p 4445:4444 -p 5901:5900 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20200921
494
- $ docker run -d -p 4446:4444 -p 5902:5900 -v /dev/shm:/dev/shm selenium/standalone-opera:4.0.0-alpha-7-prerelease-20200921
492
+ $ docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome:4.0.0-alpha-7-prerelease-20201009
493
+ $ docker run -d -p 4445:4444 -p 5901:5900 -v /dev/shm:/dev/shm selenium/standalone-firefox:4.0.0-alpha-7-prerelease-20201009
494
+ $ docker run -d -p 4446:4444 -p 5902:5900 -v /dev/shm:/dev/shm selenium/standalone-opera:4.0.0-alpha-7-prerelease-20201009
495
495
```
496
496
497
497
Then, you would use in your VNC client:
@@ -509,9 +509,9 @@ When you are prompted for the password it is `secret`. If you wish to change thi
509
509
it in the ` /NodeBase/Dockerfile ` and build the images yourself, or you can define a Docker image that derives from
510
510
the posted ones which reconfigures it:
511
511
``` dockerfile
512
- # FROM selenium/node-chrome:4.0.0-alpha-7-prerelease-20200921
513
- # FROM selenium/node-firefox:4.0.0-alpha-7-prerelease-20200921
514
- # FROM selenium/node-opera:4.0.0-alpha-7-prerelease-20200921
512
+ # FROM selenium/node-chrome:4.0.0-alpha-7-prerelease-20201009
513
+ # FROM selenium/node-firefox:4.0.0-alpha-7-prerelease-20201009
514
+ # FROM selenium/node-opera:4.0.0-alpha-7-prerelease-20201009
515
515
# Choose the FROM statement that works for you.
516
516
517
517
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
0 commit comments