You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2024. It is now read-only.
# && echo "deb http://security.ubuntu.com/ubuntu focal-security main universe\n" >> /etc/apt/sources.list
13
13
14
14
ARG TARGETARCH
15
+
ARG TARGETVARIANT
15
16
16
17
# No interactive frontend during docker build
17
18
ENV DEBIAN_FRONTEND=noninteractive \
18
-
DEBCONF_NONINTERACTIVE_SEEN=true \
19
-
ARCH=$TARGETARCH
19
+
DEBCONF_NONINTERACTIVE_SEEN=true
20
+
20
21
21
22
#========================
22
23
# Miscellaneous packages
@@ -37,7 +38,15 @@ RUN apt-get -qqy update \
37
38
gnupg2 \
38
39
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
39
40
40
-
RUN echo $ARCH && sed -i 's/securerandom\.source=file:\/dev\/random/securerandom\.source=file:\/dev\/urandom/' ./usr/lib/jvm/java-11-openjdk-$ARCH/conf/security/java.security
41
+
#===================
42
+
43
+
RUN if [ $TARGETARCH = "arm" ] && [ $TARGETVARIANT = "v7" ]; then \
44
+
export ARCH=armhf ; \
45
+
else \
46
+
export ARCH=$TARGETARCH ; \
47
+
fi \
48
+
&& sed -i 's/securerandom\.source=file:\/dev\/random/securerandom\.source=file:\/dev\/urandom/' ./usr/lib/jvm/java-11-openjdk-$ARCH/conf/security/java.security
For other images, see the next section to build them yourself.
4
12
5
13
## Only Building the Images
6
14
@@ -11,15 +19,19 @@ The NodeBase folder is the base for all Node${browser} images and includes a scr
11
19
12
20
Inside build.sh are environment variables which are used to tag the built images. If changing the Selenium version, note that you must also edit the Base/Dockerfile and change which selenium-server version is downloaded via wget. The Chromium version is set in NodeChromium/Dockerfile.txt.
13
21
14
-
To build the images, run build.sh from the root directory of this repo:
22
+
The build.sh script only builds the standalone images, node images, and the hub. You are welcome to try and build and test the other images, if you need them.
23
+
24
+
To build the images, run build.sh from the root directory of this repo, and specify your architecture, either arm64, arm/v7, or amd64:
15
25
16
26
```
17
-
$ sh build.sh
27
+
$ ./build.sh arm64 # or arm/v7 or amd64
18
28
```
19
29
20
-
I have not pushed any images to the Docker registry. If you wish to push them to a registry, you may do so. For more information on older ARM64 Selenium images, see https://github.com/sj26/docker-selenium and https://hub.docker.com/u/seleniarm
30
+
This is a fork of [SeleniumHQ/docker-selenium](https://github.com/SeleniumHQ/docker-selenium) and based on changes from [sj26/docker-selenium](https://github.com/sj26/docker-selenium).
31
+
32
+
Multi-arch images are located at https://hub.docker.com/u/seleniarm
21
33
22
-
the primary motivation for creating this fork and updating the images is so I can use the noVNC client on Selenium 4.0.0. To use noVNC, make sure you open port 7900, and visit localhost:7900 in your browser.
34
+
The primary motivation for creating this fork and updating the images is so I can use the noVNC client on Selenium 4.0.0 on the Mac M1, an arm64 architecture. To use noVNC, make sure you open port 7900, and visit localhost:7900 in your browser.
0 commit comments