Skip to content

Commit 44ba23a

Browse files
committed
Make Selenium image configurable
In certain environments, we may want to customise the docker image e.g. to use a proxy to avoid docker hub rate limiting. The default behaviour remains unchanged.
1 parent 6c10cea commit 44ba23a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

selenium/bin/components/selenium

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/usr/bin/env bash
22

3-
arch=$(uname -a)
4-
if [[ $arch == arm* ]]; then
5-
SELENIUM_DOCKER_IMAGE=selenium/standalone-chrome:123.0
6-
else
7-
SELENIUM_DOCKER_IMAGE=seleniarm/standalone-chromium:123.0
3+
if [[ -z "$SELENIUM_DOCKER_IMAGE" ]]; then
4+
arch=$(uname -a)
5+
if [[ $arch == arm* ]]; then
6+
SELENIUM_DOCKER_IMAGE=selenium/standalone-chrome:123.0
7+
else
8+
SELENIUM_DOCKER_IMAGE=seleniarm/standalone-chromium:123.0
9+
fi
810
fi
911

1012
start_selenium() {

0 commit comments

Comments
 (0)