@@ -32,7 +32,6 @@ function docker-selenium_env() {
32
32
SELENIUMURL_9
33
33
SELENIUMURL_10
34
34
35
- TRY_SELENIARM # Only for testing purposes, decide if we want to try arm64/aarch64 images.
36
35
USE_SELVERSION
37
36
)
38
37
echo " ${env[@]} "
@@ -106,16 +105,13 @@ function docker-selenium_setup() {
106
105
fi
107
106
108
107
# Only for testing purposes, we are going to introduce basic support for arm64 architecture.
109
- # Many of the docker images already are multi-arch, but not the selenium ones, that are using
110
- # a different repository for arm64. Let's use them here.
111
108
# Important note: While we are still running Selenium 3, the arm64 images are using Selenium 4,
112
109
# so they could come with new problems or incompatibilities.
113
- # As said, this is only for testing purposes, we are not going to support arm64 officially yet.
114
- # TODO: After testing, consider if we can make this the default for arm64, deleting this conf.
115
- # and using the seleniarm images when `uname -m` is arm64 or aarch64.
116
- if [[ -n ${TRY_SELENIARM} ]]; then
117
- chromeimage=" seleniarm/standalone-chromium:latest"
118
- firefoximage=" sseleniarm/standalone-firefox:latest"
110
+ local architecture=
111
+ architecture=$( uname -m)
112
+ if [[ $architecture == " arm64" ]] || [[ $architecture == " aarch64" ]]; then
113
+ chromeimage=" selenium/standalone-chromium:latest"
114
+ firefoximage=" selenium/standalone-firefox:latest"
119
115
fi
120
116
121
117
# And these are the final images and options we will use.
0 commit comments