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

Commit

Permalink
Updated Chromium, Firefox, and Selenium to latest versions. Added a s…
Browse files Browse the repository at this point in the history
…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
jamesmortensen committed Feb 22, 2022
1 parent 3bca5bf commit 670a2f8
Show file tree
Hide file tree
Showing 12 changed files with 65 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/base:4.1.1-20220119
FROM seleniarm/base:4.1.2-20220222
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER 1200
Expand Down
2 changes: 1 addition & 1 deletion NodeBase/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/base:latest
FROM seleniarm/base:4.1.2-20220222
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER root
Expand Down
5 changes: 3 additions & 2 deletions NodeChromium/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/node-base:latest
FROM seleniarm/node-base:4.1.2-20220222
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER root
Expand All @@ -14,7 +14,8 @@ RUN echo "deb http://ftp.hk.debian.org/debian/ sid main" >> /etc/apt/sources.lis
# && 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=97.0.4692.71-0.1 \
&& apt-get -qqy install chromium=98.0.4758.102-1+b1 \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

#=================================
Expand Down
3 changes: 2 additions & 1 deletion NodeChromium/Dockerfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN echo "deb http://ftp.hk.debian.org/debian/ sid main" >> /etc/apt/sources.lis
# && 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=97.0.4692.71-0.1 \
&& apt-get -qqy install chromium=98.0.4758.102-1+b1 \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

#=================================
Expand Down
5 changes: 3 additions & 2 deletions NodeFirefox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/node-base:4.1.0-20211217
FROM seleniarm/node-base:4.1.2-20220222
LABEL authors=SeleniumHQ,sj26,jamesmortensen

#FROM local-seleniarm/node-base:4.0.0-20211018
Expand All @@ -15,7 +15,8 @@ USER root
#=========
RUN echo "deb http://ftp.hk.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-esr libavcodec-extra \
&& apt-get -qqy install firefox libavcodec-extra \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

# geckodriver was built using the local-seleniarm/geckodriver-arm64 Debian image
Expand Down
3 changes: 2 additions & 1 deletion NodeFirefox/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ USER root
#=========
RUN echo "deb http://ftp.hk.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-esr libavcodec-extra \
&& apt-get -qqy install firefox libavcodec-extra \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

# geckodriver was built using the local-seleniarm/geckodriver-arm64 Debian image
Expand Down
47 changes: 47 additions & 0 deletions NodeFirefox/build-and-deploy-firefox-multi-arch.sh
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
4 changes: 2 additions & 2 deletions NodeFirefox/build-step-2.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

DOCKERDEB=false # if using Docker Desktop, set to false
ARCH=linux/amd64
ARCH=linux/arm64

if [[ $DOCKERDEB == true ]]
then
Expand All @@ -14,7 +14,7 @@ fi

echo 'Generate the Dockerfile.arm64...'
BUILD_DATE=$(date +'%Y%m%d')
VERSION=4.1.0
VERSION=4.1.2
NAMESPACE=local-seleniarm
AUTHORS=SeleniumHQ,sj26,jamesmortensen

Expand Down
2 changes: 1 addition & 1 deletion StandaloneChromium/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/node-chromium:latest
FROM seleniarm/node-chromium:4.1.2-20220222
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER 1200
Expand Down
7 changes: 1 addition & 6 deletions StandaloneFirefox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<<<<<<< HEAD
FROM local-seleniarm/node-firefox:4.1.0-20211217
FROM seleniarm/node-firefox:4.1.2-20220222
LABEL authors=SeleniumHQ,sj26,jamesmortensen
=======
FROM selenium/node-firefox:4.1.2-20220217
LABEL authors=SeleniumHQ
>>>>>>> 655026371fd7958b4aec2dd551a0b9af0cc5f4b3

USER 1200

Expand Down
2 changes: 1 addition & 1 deletion build-and-deploy-multi-arch.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BUILD_DATE=$(date +'%Y%m%d')
VERSION=4.1.1-alpha
VERSION=4.1.2
CHROMIUM=93.0.4577.82 # Not yet used at this time. Edit in NodeChromium/Dockerfile.txt
NAMESPACE=seleniarm
AUTHORS=SeleniumHQ,sj26,jamesmortensen
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -x

BUILD_DATE=$(date +'%Y%m%d')
VERSION=4.1.1
VERSION=4.1.2
CHROMIUM=93.0.4577.82 # Not yet used at this time. Edit in NodeChromium/Dockerfile.txt
NAMESPACE=local-seleniarm
AUTHORS=SeleniumHQ,sj26,jamesmortensen
Expand Down

0 comments on commit 670a2f8

Please sign in to comment.