Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging the fork [docker-seleniarm] into docker-selenium #2257

Merged
merged 389 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
389 commits
Select commit Hold shift + click to select a range
02ad6d5
add CircleCI status badge
jamesmortensen Apr 25, 2022
ff94a90
Update README
jamesmortensen Apr 25, 2022
bd853e3
Adding the code to add all of the browser tags and update the latest tag
jamesmortensen Apr 28, 2022
0a2d0fa
4.1.4
jamesmortensen Apr 28, 2022
d13b5fa
merge from upstream/trunk
jamesmortensen Apr 28, 2022
9fa71ef
Bumping grid to 4.1.4 and updating Firefox to v99.0-1
jamesmortensen Apr 28, 2022
cc94298
[deploy] 4.1.4 and Firefox 99.0-1 with browser tags and update latest…
jamesmortensen Apr 29, 2022
018bb2f
Merge branch 'docker-tags' into trunk
jamesmortensen Apr 29, 2022
1e672f6
Updated README and [deploy] grid 4.1.4 and Firefox 99.0
jamesmortensen Apr 29, 2022
5709ba6
Attempts to tag multi-arch images by modifying the manifest
jamesmortensen Apr 29, 2022
7754dc7
Added the functionality to add browser versions to the Docker Hub tag…
jamesmortensen Apr 29, 2022
3cfe97a
Allow passing an environment variable GRID_STATUS_MAX_ATTEMPTS to ove…
jamesmortensen May 3, 2022
ffdabc7
merged from upstream
jamesmortensen Jun 2, 2022
1d0e5d8
Updated Firefox to 100.0.2-1
jamesmortensen Jun 2, 2022
9afad2d
[deploy] Firefox 100.0.2-1 and Selenium 4.2.1
jamesmortensen Jun 2, 2022
d384913
merge from trunk
jamesmortensen Jun 2, 2022
f639da0
Fixing bug in variable name causing browser tagging with browser vers…
jamesmortensen Jun 2, 2022
6aa3b6f
Merge pull request #11 from seleniumhq-community/manifest-tagging
jamesmortensen Jun 2, 2022
bf02073
Fixed merge conflict from earlier
jamesmortensen Jun 20, 2022
cf1cf20
Merge branch 'manifest-tagging' into trunk
jamesmortensen Jun 20, 2022
810f76e
Merging from upstream
jamesmortensen Jun 20, 2022
b2bfb5f
[deploy] 4.2.2 seleniarm images
jamesmortensen Jun 20, 2022
9c96a3a
Automating the process of modifying the selenium grid tag since I kee…
jamesmortensen Jun 20, 2022
671f683
run the deploy workflow without deploying
jamesmortensen Jun 20, 2022
cb32922
Using instead of backticks
jamesmortensen Jun 20, 2022
eaec278
Cleanup config.yml
jamesmortensen Jun 23, 2022
ca92fef
[deploy] 4.2.2 after pulling from upstream
jamesmortensen Jun 23, 2022
95dbe7d
Debugging why it deployed as 4.1.0...
jamesmortensen Jun 23, 2022
ca90523
test [deploy]
jamesmortensen Jun 23, 2022
4b4e395
test [deploy] and outputting some debug info
jamesmortensen Jun 23, 2022
bee9bc2
test [deploy] and outputting some debug info
jamesmortensen Jun 23, 2022
655fea8
test [deploy] is BRANCH a reserved keyword?
jamesmortensen Jun 23, 2022
e048d06
test [deploy] is BRANCH a reserved keyword?
jamesmortensen Jun 23, 2022
ac28d9a
More tests [deploy]
jamesmortensen Jun 23, 2022
c8df9b5
debug [deploy]
jamesmortensen Jun 23, 2022
b62ef9b
debug [deploy]
jamesmortensen Jun 23, 2022
1c1e92f
Clean up and [deploy] test
jamesmortensen Jun 23, 2022
213ff78
test [deploy] to test account to check tags
jamesmortensen Jun 23, 2022
c529580
Resolved issue with BRANCH environment variable not being set properl…
jamesmortensen Jun 23, 2022
2515d4f
Merge branch 'selenium-version-scrape' into trunk
jamesmortensen Jun 23, 2022
abba54b
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Jun 24, 2022
510171e
[deploy] 4.3.0
jamesmortensen Jun 24, 2022
f2ca466
[deploy] 4.3.0 again since it failed
jamesmortensen Jun 24, 2022
588ea8c
small addition to readme to confirm graviton compatibility
triesztui Jun 29, 2022
80e0d6e
[deploy] merge from upstream
jamesmortensen Jul 9, 2022
37b1e2b
Merge pull request #13 from triesztui/trunk
jamesmortensen Jul 10, 2022
cd317ad
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Jul 28, 2022
d80a434
Merge branch 'trunk' of https://github.com/seleniumhq-community/docke…
jamesmortensen Jul 28, 2022
29b3e08
[deploy] 4.3.0 updates
jamesmortensen Jul 28, 2022
3316b94
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Aug 14, 2022
0f28213
[deploy] 4.4.0
jamesmortensen Aug 14, 2022
efedad1
Merging changes from upstream and https://github.com/SeleniumHQ/docke…
jamesmortensen Aug 19, 2022
7cf2715
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Sep 1, 2022
f1b8327
[deploy] update
jamesmortensen Sep 2, 2022
8f66ea0
update Firefox version
jamesmortensen Sep 2, 2022
8477be8
[deploy] 4.4.0 with Firefox 104.0-1
jamesmortensen Sep 3, 2022
9b79190
Update Makefile
jamesmortensen Sep 26, 2022
fb7d42e
Add node and standalone docker build
jamesmortensen Sep 26, 2022
e5033c8
Fix tabs. Also, replace hard-coded platforms with variable, since we …
jamesmortensen Sep 27, 2022
9bea216
Bump Firefox to 105.0.1-1
jamesmortensen Sep 29, 2022
ea7346e
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Sep 29, 2022
6d52beb
[deploy] Selenium 4.5.0 and Firefox 105.0.1-1
jamesmortensen Sep 29, 2022
a8adc84
Fix race condition when launching websockify.
xavierog Sep 30, 2022
9d9db4e
CircleCI: prevent '/' characters in Docker tags.
xavierog Oct 1, 2022
4f7dc29
Merge pull request #20 from xavierog/trunk
jamesmortensen Oct 1, 2022
45685d6
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Oct 1, 2022
ca07f3d
[deploy] fixes for #18 and #21
jamesmortensen Oct 1, 2022
7967dbb
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Oct 4, 2022
67ea158
Merge branch 'trunk' into full-grid
jamesmortensen Oct 4, 2022
5940047
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Oct 15, 2022
0da6f09
Removing obsolete and not supported shell scripts. Updating docs with…
jamesmortensen Oct 16, 2022
02b63b8
README.md formatting change
jamesmortensen Oct 17, 2022
790331e
Removed retag-latest-images-as-today obsolete script.
jamesmortensen Oct 17, 2022
808a875
Renamed NodeFirefox/Dockerfile.arm64 to NodeFirefox/Dockerfile.multi-…
jamesmortensen Oct 17, 2022
111ef9f
Make more clear Chrome isn't build for ARM 'on Linux'
jamesmortensen Oct 17, 2022
85e61f0
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Oct 18, 2022
303edea
Merge pull request #24 from seleniumhq-community/fix-build-instructions
jamesmortensen Oct 18, 2022
dab7ccd
Bump geckodriver to 0.32.0. Replace jamesmortensen/geckodriver-arm-bi…
jamesmortensen Oct 18, 2022
f8e1885
Merge pull request #25 from seleniumhq-community/geckodriver-0.32.0
jamesmortensen Oct 18, 2022
6abc1b1
[deploy] with upstream changes and official Mozilla geckodriver arm64…
jamesmortensen Oct 18, 2022
7d4d03c
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Oct 21, 2022
f13b5d0
[deploy] 4.5.2 with Java 11 HTTP client
jamesmortensen Oct 21, 2022
5a12a5b
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Oct 25, 2022
7e88b4e
[deploy] 4.5.3
jamesmortensen Oct 25, 2022
461c346
Merge branch 'trunk' of github.com:seleniumhq-community/docker-seleni…
jamesmortensen Oct 26, 2022
87017bb
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Nov 4, 2022
1c0e6ea
[deploy] merge from upstream and deploy 4.6.0
jamesmortensen Nov 4, 2022
63f40fd
Modified the telemetry installation commands so that the coursiers la…
jamesmortensen Nov 4, 2022
c2e9b97
[deploy] 4.6.0
jamesmortensen Nov 4, 2022
3efd992
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Dec 5, 2022
b5f4768
Update Firefox to v107
jamesmortensen Dec 5, 2022
b0252d7
[deploy] 4.7.0
jamesmortensen Dec 5, 2022
148abc7
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Dec 13, 2022
4785332
[deploy] 4.7.1
jamesmortensen Dec 13, 2022
6304393
Publish plain version numbers (e.g.: 4.6.0, 4.6, 4)
deejgregor Dec 16, 2022
95fc528
Merge pull request #29 from deejgregor/feature-container-tag-plain-ve…
jamesmortensen Dec 19, 2022
96d1821
[deploy] 4.7.2 and Fixes #26 which adds plain Selenium version number…
jamesmortensen Dec 19, 2022
d23adb4
[deploy] using the native coursier binaries, since the JAR version ta…
jamesmortensen Dec 20, 2022
c8cbb01
[deploy] with jaegar observability jars only for aarch64 since it cau…
jamesmortensen Dec 20, 2022
630a58d
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Dec 30, 2022
f63468a
Merge branch 'trunk' into full-grid
jamesmortensen Dec 31, 2022
db554c0
Upgrade to Firefox 108.0-2 for all architectures
jamesmortensen Jan 2, 2023
4c45f3b
Test [deploy]. Add the grid components to the deploy step, and split …
jamesmortensen Jan 2, 2023
5adbe17
Test [deploy]. Add the grid components to the deploy step, and split …
jamesmortensen Jan 2, 2023
f1a83de
[deploy] fix job names
jamesmortensen Jan 2, 2023
a503722
test [deploy] debug some broken build processes.
jamesmortensen Jan 2, 2023
53671f9
[deploy] Avoid make and run all build commands brom build-and-push.sh
jamesmortensen Jan 2, 2023
5a1db9b
[deploy] 4.7.2 with Firefox 108
jamesmortensen Jan 2, 2023
1a26a8e
[deploy] testing using an exit code in case a command in the script f…
jamesmortensen Jan 2, 2023
a03048e
[deploy]
jamesmortensen Jan 2, 2023
d6c6061
Change bash to sh
jamesmortensen Jan 2, 2023
a00b304
[deploy] test
jamesmortensen Jan 2, 2023
3ce414c
[deploy] testing to see why building base behaves differently with ma…
jamesmortensen Jan 2, 2023
c7db2a3
[deploy] re-register binfmt and qemu for each runner
jamesmortensen Jan 2, 2023
fb16431
[deploy] testing tagging and release notes job after fixing env var d…
jamesmortensen Jan 3, 2023
abc52db
[deploy] testing tagging and release notes job after fixing env var d…
jamesmortensen Jan 3, 2023
34f58c1
[deploy] try using one of the parameters passed in declaratively inst…
jamesmortensen Jan 3, 2023
221a378
[deploy] try with the job name and also log it for the base job as well
jamesmortensen Jan 3, 2023
3209380
[deploy] using the make targets parameter.
jamesmortensen Jan 3, 2023
1900a3f
[deploy] using the make targets parameter.
jamesmortensen Jan 3, 2023
8bbf85b
[deploy] test
jamesmortensen Jan 3, 2023
04683f2
[deploy] test
jamesmortensen Jan 3, 2023
544444b
test [deploy] Added scripts and logic to add the Major_minor tags to …
jamesmortensen Jan 8, 2023
f857b89
Changed file permissions so shell script can be executed.
jamesmortensen Jan 9, 2023
8628d6f
Test [deploy] Remove comment
jamesmortensen Jan 9, 2023
df73417
Test [deploy] Adding NAMESPACE variable to the docker-pull-related-ta…
jamesmortensen Jan 9, 2023
67e73ee
Test [deploy] and retag the images with related tags instead of exces…
jamesmortensen Jan 10, 2023
e514fab
Test [deploy]. Rename docker-pull-related-tags to docker-add-related-…
jamesmortensen Jan 11, 2023
d7ba965
Test [deploy] forgot a tag
jamesmortensen Jan 11, 2023
58eee13
Test [deploy] need to set build date to date of prev deployed images …
jamesmortensen Jan 11, 2023
010f9fd
test [deploy] removed commented test code
jamesmortensen Jan 11, 2023
cbd2878
Test [deploy] to see the full flow.
jamesmortensen Jan 18, 2023
60f4a0f
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Jan 18, 2023
d168606
Merge branch 'trunk' into full-grid
jamesmortensen Jan 18, 2023
fbabdfd
test [deploy] after merge from trunk and upstream
jamesmortensen Jan 18, 2023
6ca204b
Test [deploy]
jamesmortensen Jan 19, 2023
1e02725
Test [deploy]
jamesmortensen Jan 23, 2023
bcf1393
Fix ordering of the grid images
jamesmortensen Jan 24, 2023
5bd612e
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Jan 24, 2023
8facb4d
Change everything back to the production 'seleniarm' Docker credentia…
jamesmortensen Jan 24, 2023
d552e2d
Merge branch 'trunk' into full-grid
jamesmortensen Jan 24, 2023
25c13f7
[deploy] 4.8.0 with upgrade Firefox to 109 and full grid.
jamesmortensen Jan 24, 2023
439ab79
If we're getting release notes, pull from docker anonymously
jamesmortensen Feb 4, 2023
8e8b050
merge from upstream
jamesmortensen Feb 4, 2023
8b103bd
Merge branch 'trunk' into full-grid
jamesmortensen Feb 4, 2023
ff0b273
[deploy] with 0.32.1 geckodriver
jamesmortensen Feb 4, 2023
171e97e
[deploy] Need to be logged into Docker Hub in order to push tags but …
jamesmortensen Feb 4, 2023
d6efa3f
merge from upstream
jamesmortensen Feb 11, 2023
49b31ca
Merge branch 'trunk' into full-grid
jamesmortensen Feb 11, 2023
f83d886
[deploy] 4.8.0 with latest noVNC and websockify
jamesmortensen Feb 11, 2023
c0eaa2b
merging from upstream
jamesmortensen Feb 26, 2023
1d03b0f
Upgrade to Firefox 109 and geckodriver 0.32.2
jamesmortensen Feb 26, 2023
c53631e
Merge from permissions-changes
jamesmortensen Feb 26, 2023
99f30b1
[deploy] 4.8.1 and geckodriver 0.32.2
jamesmortensen Feb 26, 2023
d55e5cf
[deploy] with updates to use buildx imagetools instead of docker mani…
jamesmortensen Mar 4, 2023
7cd9389
[deploy] with 'chomium' typo fix.
jamesmortensen Mar 4, 2023
f109bd4
Merge from upstream
jamesmortensen Mar 10, 2023
56aa04d
Merge branch 'trunk' into full-grid
jamesmortensen Mar 10, 2023
c6c5269
[deploy] updates from upstream
jamesmortensen Mar 10, 2023
051502a
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Mar 27, 2023
eab2b7c
Merge branch 'trunk' into full-grid
jamesmortensen Mar 27, 2023
d23449c
Updated multi-arch Firefox to 111.0.1-1.
jamesmortensen Mar 27, 2023
dce99da
Merge branch 'trunk' into full-grid
jamesmortensen Mar 27, 2023
8422c0d
[deploy] 4.8.2
jamesmortensen Mar 27, 2023
9e98e6d
[deploy] 4.8.2 with Firefox rollback to v109.
jamesmortensen Mar 27, 2023
a041b80
[deploy] 4.8.2
jamesmortensen Mar 31, 2023
0388c72
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Apr 1, 2023
15f0646
Merge branch 'trunk' into full-grid
jamesmortensen Apr 1, 2023
bf8ec46
[deploy] 4.8.3. Updated build-and-push.sh script to use default Selen…
jamesmortensen Apr 1, 2023
4cd38d5
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Apr 21, 2023
a8952d1
Merge branch 'trunk' into full-grid
jamesmortensen Apr 21, 2023
303ddee
Update Firefox to v112.0-1
jamesmortensen Apr 21, 2023
fc1d114
[deploy] 4.9.0
jamesmortensen Apr 21, 2023
9351225
Adding some delays between building images that are dependent on each…
jamesmortensen Apr 22, 2023
cc39a83
For build errors, we'll retry them 5 times before giving up
jamesmortensen Apr 22, 2023
c414dd2
Updating the README docs to reflect the state of building the grid co…
jamesmortensen Apr 22, 2023
0c14b8b
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen May 8, 2023
7b33272
Merge branch 'trunk' into full-grid
jamesmortensen May 8, 2023
9c2fefd
[deploy] 4.9.1
jamesmortensen May 8, 2023
f7e55ef
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Jun 14, 2023
b8f8864
Merge branch 'trunk' into full-grid
jamesmortensen Jun 14, 2023
9b0ddac
debian:latest is now bookworm, and openjdk-11-jre-headless is missing…
jamesmortensen Jun 15, 2023
c06efd4
Bump Firefox to 114.0-1 and geckodriver to 0.33.0
jamesmortensen Jun 15, 2023
4041acc
[deploy] Selenium 4.10, Firefox 114,0-1 geckodriver 0.33.0
jamesmortensen Jun 15, 2023
334c86e
Merge pull request #30 from seleniumhq-community/full-grid
jamesmortensen Jul 5, 2023
76919fa
Update CircleCI config to deploy grid from trunk
jamesmortensen Jul 5, 2023
cbbe631
Merged from upstream
jamesmortensen Aug 19, 2023
dd35071
Updated Firefox to 116.0-2
jamesmortensen Aug 19, 2023
a6d9ca8
Downgrade Selenium to 4.10 with updated browsers and drivers
jamesmortensen Aug 28, 2023
b701dd5
[deploy] updated browsers with Selenium 4.10.0
jamesmortensen Aug 28, 2023
331aeb8
Merge branch 'trunk' of https://github.com/SeleniumHQ/docker-selenium…
jamesmortensen Aug 29, 2023
6aa1f26
Merge from upstream to add Selenium Manager SE_OFFLINE environment va…
jamesmortensen Aug 29, 2023
07e8118
Merge from upstream. Bump Selenium to 4.12.1
jamesmortensen Sep 7, 2023
00190a2
merge from upstream
jamesmortensen Sep 25, 2023
5d9486c
update python selenium module to latest. Update Firefox
jamesmortensen Sep 25, 2023
62ef33e
[deploy] latest browsers for Selenium 4.10.0
jamesmortensen Sep 26, 2023
247e34e
[deploy] 4.10.0 redeploy
jamesmortensen Sep 26, 2023
08e0509
Merging from upstream
jamesmortensen Dec 8, 2023
84e8b99
Fix build scripts so the RELEASE variable is used.
jamesmortensen Dec 9, 2023
b643b84
Fix Makefile - add BASE_RELEASE and BASE_VERSION to the base_multi ac…
jamesmortensen Dec 9, 2023
5169a5c
Adding locale to Chromium dockerfile.
jamesmortensen Dec 9, 2023
c92165e
Handle usrmerge issues https://wiki.debian.org/UsrMerge
jamesmortensen Dec 9, 2023
d56b368
Just install usrmerge
jamesmortensen Dec 9, 2023
69b5bfe
Try chromium without usrmerge. Upgrade Firefox to 120
jamesmortensen Dec 10, 2023
562ab74
Add usrmerge to NodeChromium after setting sources. Split Firefox ins…
jamesmortensen Dec 10, 2023
1a8d4a4
[deploy] test with debian bookworm update - was missing the browser_v…
jamesmortensen Dec 20, 2023
ac446ae
[deploy] test
jamesmortensen Dec 20, 2023
a065634
[deploy] test from tmp
jamesmortensen Dec 20, 2023
8b1a1b1
[deploy] fixed tests
jamesmortensen Dec 21, 2023
8912ca0
Fixed tests by waiting for downloadable files to exist in array, fixe…
jamesmortensen Dec 30, 2023
d78ba38
Prepare release for 4.16.1
jamesmortensen Dec 30, 2023
c7ef944
Merge pull request #55 from seleniumhq-community/tmp
jamesmortensen Dec 30, 2023
732d6cb
[deploy] 4.16.1
jamesmortensen Dec 30, 2023
814245a
Merge branch 'trunk' into 4.17.0
VietND96 Jan 23, 2024
e5a0a74
Merge remote-tracking branch 'fork/trunk' into 4.17.0
VietND96 Jan 24, 2024
9b7343b
test(chart) against build multi
VietND96 Jan 24, 2024
5b4985b
Sync update from upstream
VietND96 Jan 24, 2024
2d70460
Merge upstream
VietND96 Jan 24, 2024
ba4ec07
Adding script used to build the multi-arch images, but locally using …
jamesmortensen Jan 28, 2024
bf80431
Fixed issue where xauth not found, preventing xvfb from starting.
jamesmortensen Jan 29, 2024
de6f9da
Merge remote-tracking branch 'fork/trunk' into 4.17.0
VietND96 Jan 29, 2024
9f8663f
CI chart tests against amd64 only
VietND96 Jan 29, 2024
db9e4b2
Skip NodeChromium in Dockerfile scan
VietND96 Jan 29, 2024
914a23a
Merge pull request #64 from seleniumhq-community/4.17.0
VietND96 Jan 29, 2024
cf37e18
[deploy] v4.17.0
VietND96 Jan 29, 2024
b92d263
[build] Update deploy workflow
VietND96 Jan 29, 2024
b460ee2
[deploy] v4.17.0
VietND96 Jan 29, 2024
1467119
[deploy] v4.17.0
VietND96 Jan 29, 2024
e22b1f0
[deploy] 4.17.0 - Fix bug in auto-retry logic where if build fails 5 …
jamesmortensen Jan 30, 2024
8248dd7
Merge branch 'trunk' into 4.18.0
VietND96 Feb 21, 2024
407e981
Sync with upstream
VietND96 Feb 21, 2024
46c7191
Merge pull request #65 from seleniumhq-community/4.18.0
VietND96 Feb 21, 2024
2955599
[deploy] 4.18.0
VietND96 Feb 21, 2024
420dddd
[deploy] tag image name 4.18.0
VietND96 Feb 21, 2024
6bee823
Merge remote-tracking branch 'origin/4.18.1' into trunk
VietND96 Mar 26, 2024
c5cc11b
Release v4.18.1 [deploy]
VietND96 Mar 26, 2024
45b7d82
[deploy] fix broken link to download Firefox v124
VietND96 Mar 26, 2024
feb21ee
update: Debian repo is used in NodeChromium
VietND96 Mar 27, 2024
d16ae9e
Temporary disable arch linux/arm/v7 due to NodeFirefox build failed […
VietND96 Mar 27, 2024
dffac08
Merge branch 'trunk' into 4.19.0-release
VietND96 Mar 28, 2024
1df44f4
.circleci fetch selenium version from Makefile
VietND96 Mar 28, 2024
ea220c7
Add back platform linux/arm/v7
VietND96 Mar 28, 2024
1b0c38c
Merge pull request #70 from seleniumhq-community/4.19.0-release
VietND96 Mar 28, 2024
80438d8
Update .circleci [deploy]
VietND96 Mar 28, 2024
2339d4a
Merge branch 'trunk' into 4.19.1
VietND96 Mar 31, 2024
496b79a
Merge pull request #72 from seleniumhq-community/4.19.1 [deploy]
VietND96 Mar 31, 2024
2b2e490
Merge branch 'trunk' into 4.20.0
VietND96 Apr 25, 2024
83497e0
Merge remote-tracking branch 'selenium/trunk' into 4.20.0
VietND96 Apr 26, 2024
d200a00
Merge pull request #73 from seleniumhq-community/4.20.0 [deploy]
VietND96 Apr 27, 2024
00874be
Merge branch 'arm64' into upstream-merging
VietND96 May 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
405 changes: 405 additions & 0 deletions .circleci/config.yml

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions .github/workflows/build-test-multi-arch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build & test multi-arch

on:
# push:
# branches:
# - multi-arch-tests
# - qemu-user-static
# pull_request:
# branches:
# - trunk
workflow_dispatch:

jobs:
build-and-test-multi-arch:
# Skip job based on the commit message, only works in push to branches for now
if: contains(toJson(github.event.commits), '[skip ci]') == false
name: Build & test multi-arch
runs-on: ubuntu-20.04
strategy:
matrix:
use-random-user: [false, true]
arch: [amd64, arm64]
fail-fast: false

steps:
- uses: actions/checkout@v1
- name: Output Docker info
run: docker info
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Get branch name (only for push to branch)
if: github.event_name == 'push'
run: echo "BRANCH=$(echo ${PUSH_BRANCH##*/})" >> $GITHUB_ENV
env:
PUSH_BRANCH: ${{ github.ref }}
- name: Get target branch name (only for PRs)
if: github.event_name == 'pull_request'
run: echo "BRANCH=$(echo ${TARGET_BRANCH##*/})" >> $GITHUB_ENV
env:
TARGET_BRANCH: ${{ github.head_ref }}
- name: Output branch name
run: echo ${BRANCH}
- name: Sets build date
run: echo "BUILD_DATE=$(date '+%Y%m%d')" >> $GITHUB_ENV
- name: Build Docker images
run: VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} ARCH=${ARCH} make build_multi
if: matrix.arch == 'arm64' && matrix.use-random-user == 'false'
- name: Test Docker images
run: |
docker run -d --platform linux/${ARCH} --rm -it -p 4444:4444 -p 7900:7900 --shm-size 2g selenium/standalone-firefox:${BRANCH}-${BUILD_DATE}
USE_RANDOM_USER_ID=${USE_RANDOM_USER} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} ARCH=${ARCH} SKIP_BUILD=true make test_firefox_standalone_multi
#USE_RANDOM_USER_ID=${USE_RANDOM_USER} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} ARCH=${ARCH} SKIP_BUILD=true make test_chromium_standalone_multi
env:
USE_RANDOM_USER: ${{ matrix.use-random-user }}
ARCH: ${{ matrix.arch }}
if: matrix.arch == 'arm64' && matrix.use-random-user == 'false'

7 changes: 1 addition & 6 deletions Base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
# Miscellaneous packages
# Includes minimal runtime used for executing non GUI Java programs
#========================
RUN if [ "${TARGETARCH}" = "amd64" ]; then \
echo "deb http://archive.ubuntu.com/ubuntu jammy main universe\n" > /etc/apt/sources.list \
&& echo "deb http://archive.ubuntu.com/ubuntu jammy-updates main universe\n" >> /etc/apt/sources.list \
&& echo "deb http://security.ubuntu.com/ubuntu jammy-security main universe\n" >> /etc/apt/sources.list ; \
fi \
&& apt-get -qqy update \
RUN apt-get -qqy update \
&& apt-get upgrade -yq \
&& apt-get -qqy --no-install-recommends install \
acl \
Expand Down
142 changes: 142 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,77 @@ edge_upgrade_version:
docker run --rm $(NAME)/standalone-edge:$(TAG_VERSION) microsoft-edge --version
docker run --rm $(NAME)/standalone-edge:$(TAG_VERSION) msedgedriver --version

# Register linux/arm64 and linux/arm/v7 architectures for building with BuildKit
# docker run --rm --privileged aptman/qus -s -- -p # for actions
qemu_user_static:
docker run --rm --privileged aptman/qus -- -r ; \
docker run --rm --privileged aptman/qus -s -- -p

# Build multi-arch images
all_multi: base_multi \
hub_multi \
chromium_multi \
firefox_multi \
docker_multi \
standalone_chromium_multi \
standalone_firefox_multi \
standalone_docker_multi \
distributor_multi \
router_multi \
sessions_multi \
sessionqueue_multi \
event_bus_multi \
video_multi

build_multi: all_multi

ci_multi: build_multi test_multi_arch

base_multi: qemu_user_static
cd ./Base && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) --build-arg VERSION=$(BASE_VERSION) --build-arg RELEASE=$(BASE_RELEASE) -t $(NAME)/base:$(TAG_VERSION) .

hub_multi: base_multi
cd ./Hub && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/hub:$(TAG_VERSION) .

distributor_multi:
cd ./Distributor && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/distributor:$(TAG_VERSION) .

router_multi:
cd ./Router && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/router:$(TAG_VERSION) .

sessions_multi:
cd ./Sessions && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/sessions:$(TAG_VERSION) .

sessionqueue_multi:
cd ./SessionQueue && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/session-queue:$(TAG_VERSION) .

event_bus_multi: base_multi
cd ./EventBus && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/event-bus:$(TAG_VERSION) .

node_base_multi: base_multi
cd ./NodeBase && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/node-base:$(TAG_VERSION) .

chromium_multi: node_base_multi
cd ./NodeChromium && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/node-chromium:$(TAG_VERSION) .

firefox_multi: node_base_multi
cd ./NodeFirefox && docker buildx build -f Dockerfile.multi-arch --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/node-firefox:$(TAG_VERSION) .

docker_multi: base_multi
cd ./NodeDocker && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/node-docker:$(TAG_VERSION) .

standalone_firefox_multi: firefox_multi
cd ./Standalone && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) --build-arg BASE=node-firefox -t $(NAME)/standalone-firefox:$(TAG_VERSION) .

standalone_chromium_multi: chromium_multi
cd ./Standalone && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) --build-arg BASE=node-chromium -t $(NAME)/standalone-chromium:$(TAG_VERSION) .

standalone_docker_multi: docker_multi
cd ./StandaloneDocker && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) $(FROM_IMAGE_ARGS) -t $(NAME)/standalone-docker:$(TAG_VERSION) .

video_multi:
cd ./Video && docker buildx build --platform $(PLATFORMS) $(BUILD_ARGS) --build-arg NAMESPACE=$(FFMPEG_BASED_NAME) --build-arg BASED_TAG=$(FFMPEG_BASED_TAG) -t $(NAME)/video:$(FFMPEG_TAG_VERSION)-$(BUILD_DATE) .

# https://github.com/SeleniumHQ/docker-selenium/issues/992
# Additional tags for browser images
tag_and_push_browser_images: tag_and_push_chrome_images tag_and_push_firefox_images tag_and_push_edge_images
Expand Down Expand Up @@ -217,6 +288,58 @@ tag_latest:
docker tag $(NAME)/standalone-docker:$(TAG_VERSION) $(NAME)/standalone-docker:latest
docker tag $(NAME)/video:$(FFMPEG_TAG_VERSION)-$(BUILD_DATE) $(NAME)/video:latest

# Additional tags for browser images
tag_and_push_multi_arch_browser_images: tag_and_push_multi_arch_chromium_images tag_and_push_multi_arch_firefox_images

tag_and_push_multi_arch_chromium_images:
./tag_and_push_multi-arch_browser_images.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) chromium

tag_and_push_multi_arch_firefox_images:
./tag_and_push_multi-arch_browser_images.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) firefox

tag_major_minor_multi_arch:
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) base
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) hub
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) node-base
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) node-docker
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) standalone-docker
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) sessions
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) session-queue
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) event-bus
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) router
./tag_and_push_multi-arch_major_minor.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) $(PUSH_IMAGE) distributor

tag_multi_arch_latest:
docker buildx imagetools create -t ${NAMESPACE}/base:latest ${NAMESPACE}/base:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/hub:latest ${NAMESPACE}/hub:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/node-base:latest ${NAMESPACE}/node-base:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/node-chromium:latest ${NAMESPACE}/node-chromium:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/node-firefox:latest ${NAMESPACE}/node-firefox:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/standalone-chromium:latest ${NAMESPACE}/standalone-chromium:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/standalone-firefox:latest ${NAMESPACE}/standalone-firefox:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/node-docker:latest ${NAMESPACE}/node-docker:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/standalone-docker:latest ${NAMESPACE}/standalone-docker:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/sessions:latest ${NAMESPACE}/sessions:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/session-queue:latest ${NAMESPACE}/session-queue:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/event-bus:latest ${NAMESPACE}/event-bus:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/router:latest ${NAMESPACE}/router:${TAG_VERSION}
docker buildx imagetools create -t ${NAMESPACE}/distributor:latest ${NAMESPACE}/distributor:${TAG_VERSION}

# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) base latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) hub latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) node-base latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) node-chromium latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) node-firefox latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) standalone-chromium latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) standalone-firefox latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) node-docker latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) standalone-docker latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) sessions latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) session-queue latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) event-bus latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) router latest
# ./tag-and-push-multi-arch-image.sh $(VERSION) $(BUILD_DATE) $(NAMESPACE) distributor latest

release_latest:
docker push $(NAME)/base:latest
docker push $(NAME)/hub:latest
Expand Down Expand Up @@ -433,6 +556,25 @@ test_firefox:
test_firefox_standalone:
VERSION=$(TAG_VERSION) NAMESPACE=$(NAMESPACE) BINDING_VERSION=$(BINDING_VERSION) ./tests/bootstrap.sh StandaloneFirefox

# Test multi-arch container images
test_multi_arch: test_chromium_multi \
test_firefox_multi \
test_chromium_standalone_multi \
test_firefox_standalone_multi


test_chromium_multi:
VERSION=$(TAG_VERSION) NAMESPACE=$(NAMESPACE) BINDING_VERSION=$(BINDING_VERSION) ./tests/bootstrap.sh NodeChromium

test_chromium_standalone_multi:
VERSION=$(TAG_VERSION) NAMESPACE=$(NAMESPACE) BINDING_VERSION=$(BINDING_VERSION) ./tests/bootstrap.sh StandaloneChromium

test_firefox_multi:
VERSION=$(TAG_VERSION) NAMESPACE=$(NAMESPACE) BINDING_VERSION=$(BINDING_VERSION) ./tests/bootstrap.sh NodeFirefox

test_firefox_standalone_multi:
VERSION=$(TAG_VERSION) NAMESPACE=$(NAMESPACE) BINDING_VERSION=$(BINDING_VERSION) ./tests/bootstrap.sh StandaloneFirefox

test_parallel: hub chrome firefox edge
sudo rm -rf ./tests/tests
for node in DeploymentAutoscaling JobAutoscaling ; do \
Expand Down
6 changes: 0 additions & 6 deletions NodeBase/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ RUN apt-get update -qqy \
fonts-noto-color-emoji \
&& locale-gen ${LANGUAGE} \
&& dpkg-reconfigure --frontend noninteractive locales \
&& if [ "${TARGETARCH}" = "amd64" ]; then \
apt-get -qqy --no-install-recommends install \
language-pack-en \
xfonts-cyrillic \
fonts-ubuntu ; \
fi \
&& apt-get -qyy autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get -qyy clean \
Expand Down
47 changes: 47 additions & 0 deletions NodeChromium/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
ARG NAMESPACE
ARG VERSION
ARG AUTHORS
FROM ${NAMESPACE}/node-base:${VERSION}
LABEL authors=${AUTHORS}

USER root

#ENV LANGUAGE=en_US.UTF-8
#ENV LC_ALL=en_US.UTF-8
#ENV LANG=en_US.UTF-8

# Deal with the usr merge issues in Debian
#RUN apt install usrmerge

# Install Chromium
# RUN echo "deb http://http.us.debian.org/debian/ stable non-free contrib main" >> /etc/apt/sources.list \
RUN echo "deb http://deb.debian.org/debian/ sid main" >> /etc/apt/sources.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 6ED0E7B82643E131 \
&& apt-get update -qqy \
# && apt-get -qqy install chromium=89.0.4389.82-1 \
# && apt-get -qqy install chromium=90.0.4430.212-1 \
# && apt-get -qqy install chromium=93.0.4577.82-1 \
# && apt-get -qqy install chromium=97.0.4692.71-0.1 \
# && apt-get -qqy install chromium=98.0.4758.102-1+b1 \
&& apt-get -qqy install chromium \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

Check notice on line 27 in NodeChromium/Dockerfile

View workflow job for this annotation

GitHub Actions / Scan Dockerfile vulnerabilities

DS029

Artifact: NodeChromium/Dockerfile

#=================================
# Chromium Launch Script Wrapper
#=================================
COPY wrap_chromium_binary /opt/bin/wrap_chromium_binary
RUN /opt/bin/wrap_chromium_binary

#============================================
# Chromium webdriver
#============================================
RUN apt-get update -qqy \
&& apt-get -qqy install chromium-driver \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

Check notice on line 40 in NodeChromium/Dockerfile

View workflow job for this annotation

GitHub Actions / Scan Dockerfile vulnerabilities

DS029

Artifact: NodeChromium/Dockerfile

RUN echo "chrome" > /opt/selenium/browser_name
RUN chromium --version | awk '{print $2}' > /opt/selenium/browser_version
RUN echo "\"goog:chromeOptions\": {\"binary\": \"/usr/bin/chromium\"}" > /opt/selenium/browser_binary_location

USER 1200

12 changes: 12 additions & 0 deletions NodeChromium/wrap_chromium_binary
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

WRAPPER_PATH=$(readlink -f /usr/bin/chromium)
BASE_PATH="$WRAPPER_PATH-base"
mv "$WRAPPER_PATH" "$BASE_PATH"

cat > "$WRAPPER_PATH" <<_EOF
#!/bin/bash
# Note: exec -a below is a bashism.
exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@"
_EOF
chmod +x "$WRAPPER_PATH"
69 changes: 69 additions & 0 deletions NodeFirefox/Dockerfile.multi-arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
ARG NAMESPACE
ARG VERSION
ARG AUTHORS
FROM ${NAMESPACE}/node-base:${VERSION}
LABEL authors=${AUTHORS}

ARG TARGETARCH
ARG TARGETVARIANT

ARG GECKODRIVER_VERSION=0.34.0

USER root

# Deal with the usr merge issues in Debian
#RUN apt install usrmerge

#=========
# Firefox
#=========
#RUN echo "deb http://deb.debian.org/debian/ sid main" >> /etc/apt/sources.list \
# && apt-get update -qqy \
# && apt-get -qqy install firefox-esr libavcodec-extra \
# && apt-get -qqy install firefox libavcodec-extra \
# && rm -rf /var/lib/apt/lists/* /var/cache/apt/*

# Pulling Firefox from Debian Snapshots so we can control which version we use as latest
RUN echo "deb http://deb.debian.org/debian/ sid main" >> /etc/apt/sources.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 6ED0E7B82643E131 \
&& apt-get update -qqy \
&& apt-get install libavcodec-extra firefox -y \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

Check notice on line 31 in NodeFirefox/Dockerfile.multi-arch

View workflow job for this annotation

GitHub Actions / Scan Dockerfile vulnerabilities

DS029

Artifact: NodeFirefox/Dockerfile.multi-arch

#=============
# geckodriver
#=============
RUN if [ $TARGETARCH = "arm" ] && [ $TARGETVARIANT = "v7" ]; then \
export ARCH=armhf ; \
else \
export ARCH=$TARGETARCH ; \
fi ; \
if [ -z "$ARCH" ]; then \
echo "*** BUILD ERROR: \$TARGETARCH must be arm64, amd64, or arm with \$TARGETVARIANT set to v7... exiting..." ; \
exit 1 ; \
fi ; \
if [ "$ARCH" = "arm64" ]; then \
wget --no-verbose -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux-aarch64.tar.gz ; \
elif [ "$ARCH" = "armhf" ]; then \
wget --no-verbose -O /tmp/geckodriver.tar.gz https://github.com/jamesmortensen/geckodriver-arm-binaries/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux-armv7l.tar.gz ; \
else \
wget --no-verbose -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz ; \
fi ; \
tar -C /tmp -zxf /tmp/geckodriver.tar.gz ; \
rm /tmp/geckodriver.tar.gz ; \
mkdir -p /opt/geckodriver-bin ; \
mv /tmp/geckodriver /opt/geckodriver-bin/geckodriver ; \
echo "Symlinking geckodriver to /usr/local/bin/geckodriver and /usr/bin/geckodriver" ; \
ln -s /opt/geckodriver-bin/geckodriver /usr/local/bin/geckodriver ; \
chmod 755 /usr/local/bin/geckodriver ; \
ln -s /opt/geckodriver-bin/geckodriver /usr/bin/geckodriver ; \
chmod 755 /usr/bin/geckodriver

USER 1200

#============================================
# Dumping Browser name and version for config
#============================================
RUN echo "firefox" > /opt/selenium/browser_name
RUN firefox --version | awk '{print $3}' > /opt/selenium/browser_version
RUN echo "\"moz:firefoxOptions\": {\"binary\": \"/usr/bin/firefox\"}" > /opt/selenium/browser_binary_location
Loading