Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed Aug 17, 2022
1 parent d066a41 commit 0a6351d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev/docker/selenium.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# for m1 use SELENIUM_IMAGE=seleniarm/standalone-chromium:4.0.0-beta-1-20210215 docker-compose run selenium
#ARG SELENIUM_IMAGE=selenium/standalone-chrome-debug
#ARG SELENIUM_IMAGE=selenium/standalone-chrome
ARG SELENIUM_IMAGE
FROM ${SELENIUM_IMAGE}

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ services:
dockerfile: selenium.Dockerfile
context: ./dev/docker
args:
SELENIUM_IMAGE: ${SELENIUM_IMAGE:-selenium/standalone-chrome-debug}
SELENIUM_IMAGE: ${SELENIUM_IMAGE:-selenium/standalone-chrome}
container_name: web_selenium
ports:
- 4444:4444
Expand Down
4 changes: 2 additions & 2 deletions docs/testing/acceptance-tests-all.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ There are multiple ways to run Selenium:
### Setup using Docker

- Set the environment variables `SELENIUM_HOST` as `localhost` and `SERVER_HOST` in the format `http://<ip_addr>:9100`.
- If you are a Linux user, run `docker run --rm -d --network="host" -v /dev/shm:/dev/shm -v ${REMOTE_UPLOAD_DIR:-<middleware-root>/filesForUpload}:${LOCAL_UPLOAD_DIR:-/uploads}:ro --name web-tests-selenium selenium/standalone-chrome-debug`
- If you are a Mac user, run `docker run --rm -d -p ${SELENIUM_PORT:-4444}:4444 -p 5900:5900 -v /dev/shm:/dev/shm -v ${REMOTE_UPLOAD_DIR:-<middleware-root>/filesForUpload}:${LOCAL_UPLOAD_DIR:-/uploads}:ro --name web-tests-selenium selenium/standalone-chrome-debug`
- If you are a Linux user, run `docker run --rm -d --network="host" -v /dev/shm:/dev/shm -v ${REMOTE_UPLOAD_DIR:-<middleware-root>/filesForUpload}:${LOCAL_UPLOAD_DIR:-/uploads}:ro --name web-tests-selenium selenium/standalone-chrome`
- If you are a Mac user, run `docker run --rm -d -p ${SELENIUM_PORT:-4444}:4444 -p 5900:5900 -v /dev/shm:/dev/shm -v ${REMOTE_UPLOAD_DIR:-<middleware-root>/filesForUpload}:${LOCAL_UPLOAD_DIR:-/uploads}:ro --name web-tests-selenium selenium/standalone-chrome`
- This command creates a docker container which uses port forwarding instead of host networking [which is not supported on Mac](https://docs.docker.com/network/host/)

`<middleware-root>` needs to be replaced with the path where the middleware repository is cloned in your system.
Expand Down

0 comments on commit 0a6351d

Please sign in to comment.