This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
forked from SeleniumHQ/docker-selenium
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Chromium, Firefox, and Selenium to latest versions. Added a s…
…cript to build Firefox as a multi-arch image. Chromium 98.0.4758.102; Firefox 96.0.3; Selenium 4.1.2. Pushed to DockerHub
- Loading branch information
1 parent
3bca5bf
commit 670a2f8
Showing
12 changed files
with
65 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
DOCKERDEB=false # if using Docker Desktop, set to false | ||
|
||
|
||
# if [[ $DOCKERDEB == true ]] | ||
# then | ||
# echo 'Getting geckodriver binary from the Docker Debian VM...' | ||
# sh get-geckodriver.sh | ||
# else | ||
# echo 'Getting geckodriver from /media/host...' | ||
# cp /media/host/geckodriver . | ||
# fi | ||
|
||
echo 'Generate the Dockerfile.arm64...' | ||
BUILD_DATE=$(date +'%Y%m%d') | ||
VERSION=4.1.2 | ||
NAMESPACE=seleniarm | ||
AUTHORS=SeleniumHQ,sj26,jamesmortensen | ||
ARCH=linux/arm64,linux/amd64,linux/arm/v7 | ||
|
||
echo "# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" > ./Dockerfile | ||
echo "# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED." >> ./Dockerfile | ||
echo "# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE" >> ./Dockerfile | ||
echo "# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >> ./Dockerfile | ||
echo FROM ${NAMESPACE}/node-base:${VERSION}-${BUILD_DATE} >> ./Dockerfile | ||
echo LABEL authors="$AUTHORS" >> ./Dockerfile | ||
echo "" >> ./Dockerfile | ||
cat ./Dockerfile.arm64 >> ./Dockerfile | ||
|
||
|
||
|
||
echo "Building Seleniarm/NodeFirefox:$VERSION-$BUILD_DATE" | ||
docker buildx build --push --platform $ARCH -f Dockerfile -t $NAMESPACE/node-firefox:$VERSION-$BUILD_DATE . | ||
#docker tag $NAMESPACE/node-firefox:$VERSION-$BUILD_DATE $NAMESPACE/node-firefox:latest | ||
|
||
# Generate the Seleniarm/StandaloneFirefox Dockerfile | ||
cd ../Standalone && sh generate.sh StandaloneFirefox node-firefox $VERSION-$BUILD_DATE $NAMESPACE $AUTHORS | ||
cd ../StandaloneFirefox | ||
|
||
echo "Building Seleniarm/StandaloneFirefox:$VERSION-$BUILD_DATE" | ||
docker buildx build --push --platform $ARCH -f Dockerfile -t $NAMESPACE/standalone-firefox:$VERSION-$BUILD_DATE . | ||
#docker tag $NAMESPACE/standalone-firefox:$VERSION-$BUILD_DATE $NAMESPACE/standalone-firefox:latest | ||
|
||
|
||
# Remove geckodriver image and dependencies if build is successful, since it's 4.9GB! | ||
# docker image rm local-seleniarm/geckodriver-arm64:$VERSION-$BUILD_DATE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters