Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 0da6f09

Browse files
Removing obsolete and not supported shell scripts. Updating docs with the supported method for building the ARM images locally.
1 parent 5940047 commit 0da6f09

File tree

5 files changed

+38
-164
lines changed

5 files changed

+38
-164
lines changed

README.md

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,69 @@
22

33
[![seleniumhq-community](https://circleci.com/gh/seleniumhq-community/docker-seleniarm.svg?style=shield)](https://app.circleci.com/pipelines/github/seleniumhq-community/docker-seleniarm)
44

5-
Selenium container images are available on [Docker Hub](https://hub.docker.com/u/seleniarm):
5+
This is a fork of [SeleniumHQ/docker-selenium](https://github.com/SeleniumHQ/docker-selenium) for building and maintaining docker-selenium ARM images. This fork is inspired by and based on changes from [sj26/docker-selenium](https://github.com/sj26/docker-selenium) and [rows/docker-selenium](https://github.com/rows/docker-selenium).
6+
7+
NOTE: If you only need the Intel/amd64 images, please see the official upstream [SeleniumHQ/docker-selenium](https://github.com/SeleniumHQ/docker-selenium) repository for best results.
8+
9+
These multi-arch Seleniarm container images are available on [Docker Hub](https://hub.docker.com/u/seleniarm):
610

711
- [Standalone Chromium](https://hub.docker.com/r/seleniarm/standalone-chromium)
812
- [Standalone Firefox](https://hub.docker.com/r/seleniarm/standalone-firefox)
913
- [Node Chromium](https://hub.docker.com/r/seleniarm/node-chromium)
1014
- [Node Firefox](https://hub.docker.com/r/seleniarm/node-firefox)
1115
- [Selenium Hub](https://hub.docker.com/r/seleniarm/hub)
1216

13-
For other images, see the next section to build them yourself.
17+
The other upstream images are not yet supported for multi-arch, but you can try and build them yourself.
18+
19+
20+
## Building the ARM Images
1421

15-
## Only Building the Images
22+
The entire build process is managed via a Makefile. If you want to build the images locally, without pushing to any registry, then use `make`.
1623

17-
If you want to build the images locally, without pushing to any registry, then use the build.sh script in the root of the project directory.
24+
### Structure of container images:
1825

19-
The Standalone folder is the base for all Standalone${browser} images and includes a script that starts the selenium server in standalone mode.
20-
The NodeBase folder is the base for all Node${browser} images and includes a script that starts the selenium server in node mode.
26+
- The Standalone folder is the base for all Standalone${browser} images and includes a script that starts the selenium server in standalone mode.
27+
- The NodeBase folder is the base for all Node${browser} images and includes a script that starts the selenium server in node mode.
2128

22-
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.
29+
To build with a different version of Chromium, change it in NodeChromium/Dockerfile.
2330

24-
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.
31+
The multi-arch Seleniarm images are only built for the standalone and node browser images, and the hub. You are welcome to try and build and test the other images, if you need them.
32+
33+
To build the images, run the following make command from the root directory of this repo, and specify your architecture, either arm64, arm/v7, or amd64:
34+
35+
**To build all arm64 images:**
36+
```
37+
$ NAME=local-seleniarm VERSION=4.5.0 BUILD_DATE=$(date '+%Y%m%d') PLATFORMS=linux/arm64 BUILD_ARGS=--load make build_multi
38+
```
2539

26-
To build the images, run build.sh from the root directory of this repo, and specify your architecture, either arm64, arm/v7, or amd64:
40+
**To build standalone/firefox for arm64:**
2741

2842
```
29-
$ ./build.sh arm64 # or arm/v7 or amd64
43+
$ NAME=local-seleniarm VERSION=4.5.0 BUILD_DATE=$(date '+%Y%m%d') PLATFORMS=linux/arm64 BUILD_ARGS=--load make standalone_firefox_multi
3044
```
3145

32-
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) and [rows/docker-selenium](https://github.com/rows/docker-selenium).
46+
**To build standalone/chromium for arm64:**
47+
48+
```
49+
$ NAME=local-seleniarm VERSION=4.5.0 BUILD_DATE=$(date '+%Y%m%d') PLATFORMS=linux/arm64 BUILD_ARGS=--load make standalone_chromium_multi
50+
```
51+
52+
To build for armv7l/armhf, replace PLATFORMS environment variable with `linux/arm/v7` like so:
53+
54+
```
55+
$ NAME=local-seleniarm VERSION=4.5.0 BUILD_DATE=$(date '+%Y%m%d') PLATFORMS=linux/arm/v7 BUILD_ARGS=--load make standalone_chromium_multi
56+
```
3357

34-
Multi-arch images are located at https://hub.docker.com/u/seleniarm
58+
## Running the ARM Container Images
3559

36-
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.
60+
The primary motivation for creating this fork and updating the images was so I can use the noVNC client on the latest Selenium versions on the Mac M1, an arm64 architecture. To use noVNC, make sure you open port 7900, and visit localhost:7900 in your browser.
3761

3862
The images are also successfully tested on AWS graviton nodes, resulting in better price-performance ratio and lower carbon footprint.
3963

4064
To start the container image, run:
4165

4266
```
43-
$ docker run --rm -it -p 4444:4444 -p 5900:5900 -p 7900:7900 --shm-size 3g local-seleniarm/standalone-chromium:latest
67+
$ docker run --rm -it -p 4444:4444 -p 5900:5900 -p 7900:7900 --shm-size 2g seleniarm/standalone-chromium:latest
4468
```
4569

4670
Use your traditional VNC client via port 5900, and noVNC in the browser via port 7900.

build-and-deploy-multi-arch.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

build.sh

Lines changed: 0 additions & 56 deletions
This file was deleted.

push-images-to-dockerhub.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

tag-images-for-dockerhub.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)