Skip to content

Commit

Permalink
Docker: Update version of Firefox in platform linux/arm64
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Jan 2, 2025
1 parent c5b6082 commit 2a62c6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
acl \
bzip2 \
xz-utils \
ca-certificates \
tzdata \
sudo \
unzip \
Expand All @@ -64,6 +63,7 @@ RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
gnupg2 \
libnss3-tools \
openjdk-${JRE_VERSION}-jdk-headless \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*

RUN --mount=type=secret,id=SEL_PASSWD \
Expand Down
2 changes: 2 additions & 0 deletions NodeFirefox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ RUN apt-get update -qqy && \
ln -fs $(which firefox$FIREFOX_VERSION) /usr/bin/firefox ; \
fi ; \
else \
FIREFOX_VERSION="nightly-latest" \
&& FIREFOX_VERSION=$(echo "-$FIREFOX_VERSION" | sed 's/-latest//') \
FIREFOX_DOWNLOAD_URL="${FIREFOX_DOWNLOAD_URL}" ; \
fi ; \
fi && \
Expand Down
3 changes: 3 additions & 0 deletions NodeFirefox/install-firefox-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ if [[ "${FIREFOX_DOWNLOAD_URL}" == *".deb"* ]]; then
echo "Installing Firefox from deb package..."
sudo apt-get install -y --allow-downgrades -f /tmp/firefox.deb
rm -f /tmp/firefox.deb
if [ $FIREFOX_VERSION = "-beta" ] || [ $FIREFOX_VERSION = "-nightly" ] || [ $FIREFOX_VERSION = "-devedition" ] || [ $FIREFOX_VERSION = "-esr" ]; then
sudo ln -fs $(which firefox${FIREFOX_VERSION}) /usr/bin/firefox ; \
fi
elif [[ "${FIREFOX_DOWNLOAD_URL}" == *".tar.bz2"* ]]; then
echo "Downloading Firefox from ${FIREFOX_DOWNLOAD_URL}"
wget -q -O /tmp/firefox.tar.bz2 "${FIREFOX_DOWNLOAD_URL}"
Expand Down

0 comments on commit 2a62c6a

Please sign in to comment.