Skip to content

Commit

Permalink
Updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed May 10, 2021
1 parent e0a085c commit 4b9f892
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -313,7 +313,7 @@ $ docker network rm grid
### Execution with Standalone roles

```bash
docker run --rm -ti --name selenium-docker -p 4444:4444 \
docker run --rm --name selenium-docker -p 4444:4444 \
-v ${PWD}/config.toml:/opt/bin/config.toml \
-v /path/on/your/host/machine:/opt/selenium/assets \
selenium/standalone-docker:4.0.0-beta-3-20210426
Expand Down
15 changes: 13 additions & 2 deletions StandaloneDocker/config.toml
@@ -1,15 +1,26 @@
[node]
session-timeout = 30
[docker]
# Configs have a mapping between the Docker image to use and the capabilities that need to be matched to
# start a container with the given image.
configs = [
"selenium/standalone-firefox:4.0.0-beta-3-20210426", "{\"browserName\": \"firefox\"}",
"selenium/standalone-chrome:4.0.0-beta-3-20210426", "{\"browserName\": \"chrome\"}",
"selenium/standalone-opera:4.0.0-beta-3-20210426", "{\"browserName\": \"operablink\"}"
"selenium/standalone-opera:4.0.0-beta-3-20210426", "{\"browserName\": \"opera\"}",
"selenium/standalone-edge:4.0.0-beta-3-20210426", "{\"browserName\": \"MicrosoftEdge\"}"
]

# URL for connecting to the docker daemon
# host.docker.internal works for macOS and Windows.
# Linux could use --net=host in the `docker run` instruction or 172.17.0.1 in the URI below.
# To have Docker listening through tcp on macOS, install socat and run the following command
# socat -4 TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
host = "tcp://host.docker.internal:2375"
url = "http://host.docker.internal:2375"
# Docker imagee used for video recording
video-image = "selenium/video:ffmpeg-4.3.1-20210426"

# Uncomment the following section if you are running the node on a separate VM
# Fill out the placeholders with appropriate values
#[server]
#host = <ip-from-node-machine>
#port = <port-from-node-machine>

0 comments on commit 4b9f892

Please sign in to comment.