From 85bb69eb65909cdc3a5989cd5e5564315ea6b590 Mon Sep 17 00:00:00 2001 From: Michael Strelan Date: Tue, 14 Nov 2023 08:40:49 +1000 Subject: [PATCH] Pin selenium/standalone-* to 111.0 and provide option for chromedriver (#27) --- .env.dist | 20 ++++++++++++-------- docker-compose.yml | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.env.dist b/.env.dist index 0d2c46e..d9ad487 100644 --- a/.env.dist +++ b/.env.dist @@ -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"]' diff --git a/docker-compose.yml b/docker-compose.yml index 256923e..c8194c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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