Skip to content

Commit 7d3b401

Browse files
committed
Slight update to the README [skip ci]
1 parent 7074dc5 commit 7d3b401

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

README.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ services:
180180
181181
To stop the grid and cleanup the created containers, run `docker-compose down`.
182182

183-
##### Version 3 with Swarm support
183+
##### Version 3 with Swarm support (:exclamation: not tested yet)
184+
184185
```yaml
185186
# To start Docker in Swarm mode, you need to run `docker swarm init`
186187
# To deploy the Grid, `docker stack deploy -c docker-compose.yml grid`
@@ -225,7 +226,7 @@ services:
225226
entrypoint: bash -c 'SE_OPTS="-host $$HOSTNAME" /opt/bin/entry_point.sh'
226227
```
227228
228-
### Deploying to Kubernetes
229+
### Deploying to Kubernetes (:exclamation: not tested yet)
229230
230231
Check out [the Kubernetes examples](https://github.com/kubernetes/examples/tree/master/staging/selenium)
231232
on how to deploy selenium hub and nodes on a Kubernetes cluster.
@@ -480,33 +481,33 @@ Like this, the script will poll until the Grid is ready, and then your tests wil
480481

481482
In the event you wish to visually see what the browser is doing you will want to run the `debug` variant of node or standalone images. A VNC server will run on port 5900. You are free to map that to any free external port that you wish. Keep in mind that you will only be able to run one node per port so if you wish to include a second node, or more, you will have to use different ports, the 5900 as the internal port will have to remain the same though as thats the VNC service on the node. The second example below shows how to run multiple nodes and with different VNC ports open:
482483
``` bash
483-
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-chrome-debug:3.141.59-zirconium
484-
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-firefox-debug:3.141.59-zirconium
485-
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-opera-debug:3.141.59-zirconium
484+
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-chrome:3.141.59-zirconium
485+
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-firefox:3.141.59-zirconium
486+
$ docker run -d -P -p <port4VNC>:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-opera:3.141.59-zirconium
486487
```
487488
e.g.:
488489
``` bash
489-
$ docker run -d -P -p 5900:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-chrome-debug:3.141.59-zirconium
490-
$ docker run -d -P -p 5901:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-firefox-debug:3.141.59-zirconium
491-
$ docker run -d -P -p 5900:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-opera-debug:3.141.59-zirconium
490+
$ docker run -d -P -p 5900:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-chrome:3.141.59-zirconium
491+
$ docker run -d -P -p 5901:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-firefox:3.141.59-zirconium
492+
$ docker run -d -P -p 5900:5900 --link selenium-hub:hub -v /dev/shm:/dev/shm selenium/node-opera:3.141.59-zirconium
492493
```
493494
to connect to the Chrome node on 5900 and the Firefox node on 5901 (assuming those node are free, and reachable).
494495

495496
And for standalone:
496497
``` bash
497-
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome-debug:3.141.59-zirconium
498+
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome:3.141.59-zirconium
498499
# OR
499-
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 -v /dev/shm:/dev/shm selenium/standalone-firefox-debug:3.141.59-zirconium
500+
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 -v /dev/shm:/dev/shm selenium/standalone-firefox:3.141.59-zirconium
500501
# OR
501-
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 -v /dev/shm:/dev/shm selenium/standalone-opera-debug:3.141.59-zirconium
502+
$ docker run -d -p 4444:4444 -p <port4VNC>:5900 -v /dev/shm:/dev/shm selenium/standalone-opera:3.141.59-zirconium
502503
```
503504
or
504505
``` bash
505-
$ docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome-debug:3.141.59-zirconium
506+
$ docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome:3.141.59-zirconium
506507
# OR
507-
$ docker run -d -p 4444:4444 -p 5901:5900 -v /dev/shm:/dev/shm selenium/standalone-firefox-debug:3.141.59-zirconium
508+
$ docker run -d -p 4444:4444 -p 5901:5900 -v /dev/shm:/dev/shm selenium/standalone-firefox:3.141.59-zirconium
508509
# OR
509-
$ docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-opera-debug:3.141.59-zirconium
510+
$ docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-opera:3.141.59-zirconium
510511
```
511512

512513
You can acquire the port that the VNC server is exposed to by running:
@@ -525,9 +526,9 @@ If you are running [Boot2Docker](https://docs.docker.com/installation/mac/) on O
525526

526527
When you are prompted for the password it is `secret`. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a Docker image that derives from the posted ones which reconfigures it:
527528
``` dockerfile
528-
#FROM selenium/node-chrome-debug:3.141.59-zirconium
529-
#FROM selenium/node-firefox-debug:3.141.59-zirconium
530-
#FROM selenium/node-opera-debug:3.141.59-zirconium
529+
#FROM selenium/node-chrome:3.141.59-zirconium
530+
#FROM selenium/node-firefox:3.141.59-zirconium
531+
#FROM selenium/node-opera:3.141.59-zirconium
531532
#Choose the FROM statement that works for you.
532533
533534
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd

0 commit comments

Comments
 (0)