Skip to content

Commit

Permalink
Pin selenium/standalone-* to 111.0 and provide option for chromedriver (
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrelan authored Nov 13, 2023
1 parent 4ab89fb commit 85bb69e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ BASE_URI=http://127.0.0.1:8080
UID=1000
GID=1000

## HEADLESS CHROME
# SELENIUM_IMAGE=selenium/standalone-chrome
# MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"browserName":"chrome", "goog:chromeOptions":{"args":["--no-sandbox", "--disable-dev-shm-usage", "--headless"], "w3c": false}}, "http://127.0.0.1:4444/wd/hub"]'
# CHROME DRIVER
# SELENIUM_IMAGE=drupalci/chromedriver:production
# MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"browserName":"chrome","goog:chromeOptions":{"args":["--headless", "--disable-gpu", "--no-sandbox", "--disable-dev-shm-usage"]}}, "http://127.0.0.1:9515"]'

## CHROME DEBUG
# SELENIUM_IMAGE=selenium/standalone-chrome-debug
# MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"browserName":"chrome", "goog:chromeOptions":{"args":["--no-sandbox", "--disable-dev-shm-usage"], "w3c": false}}, "http://127.0.0.1:4444/wd/hub"]'
## SELENIUM CHROME
# SELENIUM_IMAGE=selenium/standalone-chrome:111.0
# MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"browserName":"chrome","goog:chromeOptions":{"args":["--headless", "--disable-gpu", "--no-sandbox", "--disable-dev-shm-usage"]}}, "http://127.0.0.1:4444/wd/hub"]'

## FIREFOX DEBUG
# SELENIUM_IMAGE=selenium/standalone-firefox-debug
## SELENIUM CHROME DEBUG
# SELENIUM_IMAGE=selenium/standalone-chrome:111.0
# MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"browserName":"chrome","goog:chromeOptions":{"args":["--disable-gpu", "--no-sandbox", "--disable-dev-shm-usage"]}}, "http://127.0.0.1:4444/wd/hub"]'

## SELENIUM FIREFOX DEBUG
# SELENIUM_IMAGE=selenium/standalone-firefox:111.0
# MINK_DRIVER_ARGS_WEBDRIVER='["firefox", {"browserName":"firefox"}, "http://127.0.0.1:4444/wd/hub"]'
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ services:
network_mode: service:nginx

selenium:
image: ${SELENIUM_IMAGE:-selenium/standalone-chrome}
image: ${SELENIUM_IMAGE:-selenium/standalone-chrome:111.0}
network_mode: service:nginx

0 comments on commit 85bb69e

Please sign in to comment.