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

Commit

Permalink
Fixed Issue 1 where google-chrome binary is not found. Instead, we us…
Browse files Browse the repository at this point in the history
…e the chromium binary to get the browser version.
  • Loading branch information
jamesmortensen committed Dec 13, 2021
1 parent 00eefd6 commit 6629e6f
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 15 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.0.0-20211110
FROM local-seleniarm/base:4.0.0-20211211
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:4.0.0-20211110
FROM local-seleniarm/base:4.0.0-20211211
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER root
Expand Down
3 changes: 3 additions & 0 deletions NodeBase/generate_config
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ echo "max-sessions = ${SE_NODE_MAX_SESSIONS}
SE_NODE_BROWSER_NAME=$(cat /opt/selenium/browser_name)
if [[ "${SE_NODE_BROWSER_NAME}" == "chrome" ]]; then
SE_NODE_BROWSER_VERSION=$(short_version $(google-chrome --version | awk '{print $3}'))
elif [[ "${SE_NODE_BROWSER_NAME}" == "chromium" ]]; then
SE_NODE_BROWSER_NAME=chrome
SE_NODE_BROWSER_VERSION=$(short_version $(chromium --version | awk '{print $2}'))
elif [[ "${SE_NODE_BROWSER_NAME}" == "firefox" ]]; then
SE_NODE_BROWSER_VERSION=$(short_version $(firefox --version | awk '{print $3}'))
elif [[ "${SE_NODE_BROWSER_NAME}" == "MicrosoftEdge" ]]; then
Expand Down
4 changes: 2 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:4.0.0-20211110
FROM local-seleniarm/node-base:4.0.0-20211211
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER root
Expand All @@ -29,7 +29,7 @@ RUN apt-get update -qqy \
&& apt-get -qqy install chromium-driver \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

RUN echo "chrome" > /opt/selenium/browser_name
RUN echo "chromium" > /opt/selenium/browser_name

USER 1200

2 changes: 1 addition & 1 deletion NodeChromium/Dockerfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apt-get update -qqy \
&& apt-get -qqy install chromium-driver \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

RUN echo "chrome" > /opt/selenium/browser_name
RUN echo "chromium" > /opt/selenium/browser_name

USER 1200

2 changes: 1 addition & 1 deletion 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.0.0-20211111
FROM local-seleniarm/node-base:4.0.0-20211211
LABEL authors=SeleniumHQ,sj26,jamesmortensen

#FROM local-seleniarm/node-base:4.0.0-20211018
Expand Down
3 changes: 3 additions & 0 deletions Standalone/generate_config
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ echo "max-sessions = ${SE_NODE_MAX_SESSIONS}
SE_NODE_BROWSER_NAME=$(cat /opt/selenium/browser_name)
if [[ "${SE_NODE_BROWSER_NAME}" == "chrome" ]]; then
SE_NODE_BROWSER_VERSION=$(short_version $(google-chrome --version | awk '{print $3}'))
elif [[ "${SE_NODE_BROWSER_NAME}" == "chromium" ]]; then
SE_NODE_BROWSER_NAME=chrome
SE_NODE_BROWSER_VERSION=$(short_version $(chromium --version | awk '{print $2}'))
elif [[ "${SE_NODE_BROWSER_NAME}" == "firefox" ]]; then
SE_NODE_BROWSER_VERSION=$(short_version $(firefox --version | awk '{print $3}'))
elif [[ "${SE_NODE_BROWSER_NAME}" == "MicrosoftEdge" ]]; then
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:4.0.0-20211110
FROM local-seleniarm/node-chromium:4.0.0-20211211
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER 1200
Expand Down
2 changes: 1 addition & 1 deletion StandaloneFirefox/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-firefox:4.0.0-20211111
FROM local-seleniarm/node-firefox:4.0.0-20211211
LABEL authors=SeleniumHQ,sj26,jamesmortensen

USER 1200
Expand Down
14 changes: 7 additions & 7 deletions push-images-to-dockerhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ VERSION=4.0.0
NAMESPACE=seleniarm


# docker push seleniarm/base:4.0.0-20211111
# docker push seleniarm/hub:4.0.0-20211111
# docker push seleniarm/node-base:4.0.0-20211111
# docker push seleniarm/node-chromium:4.0.0-20211111
# docker push seleniarm/node-firefox:4.0.0-20211111
# docker push seleniarm/standalone-chromium:4.0.0-20211111
# docker push seleniarm/standalone-firefox:4.0.0-20211111
docker push seleniarm/base:4.0.0-$BUILD_DATE
docker push seleniarm/hub:4.0.0-$BUILD_DATE
docker push seleniarm/node-base:4.0.0-$BUILD_DATE
docker push seleniarm/node-chromium:4.0.0-$BUILD_DATE
docker push seleniarm/node-firefox:4.0.0-$BUILD_DATE
docker push seleniarm/standalone-chromium:4.0.0-$BUILD_DATE
docker push seleniarm/standalone-firefox:4.0.0-$BUILD_DATE

docker push seleniarm/base:latest
docker push seleniarm/hub:latest
Expand Down

0 comments on commit 6629e6f

Please sign in to comment.