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

Commit

Permalink
Fixed bug in build-and-deploy-multi-arch. Was generating the wrong Fi…
Browse files Browse the repository at this point in the history
…refox Dockerfile. Built images and deployed as 4.1.3-20220331
  • Loading branch information
jamesmortensen committed Mar 31, 2022
1 parent 574d4ec commit a61d860
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/base:4.1.3-20220331
LABEL authors=SeleniumHQ
FROM seleniarm/base:4.1.3-20220331
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER 1200

Expand Down
4 changes: 2 additions & 2 deletions NodeBase/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/base:4.1.3-20220331
LABEL authors=SeleniumHQ
FROM seleniarm/base:4.1.3-20220331
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER root

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

USER root

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

#FROM local-seleniarm/node-base:4.0.0-20211018
#LABEL authors=SeleniumHQ,sj26,jamesmortensen
Expand Down
4 changes: 2 additions & 2 deletions StandaloneChromium/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/node-chromium:4.1.3-20220331
LABEL authors=SeleniumHQ
FROM seleniarm/node-chromium:4.1.3-20220331
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER 1200

Expand Down
4 changes: 2 additions & 2 deletions StandaloneFirefox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM local-seleniarm/node-firefox:4.1.3-20220331
LABEL authors=SeleniumHQ
FROM seleniarm/node-firefox:4.1.3-20220331
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER 1200

Expand Down
9 changes: 7 additions & 2 deletions build-and-deploy-multi-arch.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
BUILD_DATE=$(date +'%Y%m%d')
VERSION="${VERSION:-4.1.2}"
VERSION="${VERSION:-4.1.3}"
NAMESPACE="${NAMESPACE:-seleniarm}"
AUTHORS=SeleniumHQ,sj26,jamesmortensen
ARCH=linux/arm64,linux/amd64,linux/arm/v7

echo "Register architectures via aptman/qus (QEMU User Static)...\n"

docker run --rm -it --privileged aptman/qus -- -r
docker run --rm -it --privileged aptman/qus -s -- -p

echo "Build multi-arch images and push to Docker Hub...\n"

cd ./Base && docker buildx build --push --platform $ARCH -t $NAMESPACE/base:$VERSION-$BUILD_DATE .
Expand All @@ -16,7 +21,7 @@ cd ../NodeBase && sh generate.sh $VERSION-$BUILD_DATE $NAMESPACE $AUTHORS \
# && sed 's/chromium=.*/chromium=91.0.4472.124/' Dockerfile > Dockerfile \
cd ../NodeChromium && sh generate.sh $VERSION-$BUILD_DATE $NAMESPACE $AUTHORS \
&& docker buildx build --push --platform $ARCH -t $NAMESPACE/node-chromium:$VERSION-$BUILD_DATE .
cd ../NodeFirefox && sh generate.sh $VERSION-$BUILD_DATE $NAMESPACE $AUTHORS \
cd ../NodeFirefox && sh generate-arm.sh $VERSION-$BUILD_DATE $NAMESPACE $AUTHORS \
&& docker buildx build --push --platform $ARCH -t $NAMESPACE/node-firefox:$VERSION-$BUILD_DATE .

cd ../Standalone && sh generate.sh StandaloneChromium node-chromium $VERSION-$BUILD_DATE $NAMESPACE $AUTHORS \
Expand Down

0 comments on commit a61d860

Please sign in to comment.