Skip to content

Commit 3f8b260

Browse files
fix: Pin firefox version (#6244)
Co-authored-by: Matthew Elwell <[email protected]>
1 parent fca1318 commit 3f8b260

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/platform-docker-build-e2e-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule:
55
# Update the E2E Firefox testcafe version on the first of every month
66
- cron: 0 0 1 * *
7+
workflow_dispatch:
78

89
jobs:
910
build-e2e-docker-image:

frontend/Dockerfile-base.e2e

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,19 @@ ENV NODE_VERSION 16.20.1
66
# replace shell with bash so we can source files
77
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
88

9-
# Bring in firefox into debian sources
10-
RUN echo "deb http://deb.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list.d/debian.list
11-
RUN apt-get update && apt-get install -y g++ make libssl-dev python3 python3-setuptools gnupg2 firefox curl && apt-get -y autoclean
9+
# Install dependencies
10+
RUN apt-get update && apt-get install -y \
11+
g++ make libssl-dev python3 python3-setuptools gnupg2 curl wget \
12+
libgtk-3-0 libdbus-glib-1-2 libxt6 libx11-xcb1 libasound2 \
13+
&& apt-get -y autoclean
14+
15+
# Download and install Firefox 143.0
16+
RUN ARCH=$(uname -m) && \
17+
apt-get install -y xz-utils && \
18+
wget -O /tmp/firefox.tar.xz "https://ftp.mozilla.org/pub/firefox/releases/143.0/linux-${ARCH}/en-US/firefox-143.0.tar.xz" && \
19+
tar -xJf /tmp/firefox.tar.xz -C /opt && \
20+
ln -s /opt/firefox/firefox /usr/local/bin/firefox && \
21+
rm /tmp/firefox.tar.xz
1222

1323
# nvm environment variables
1424
ENV NVM_DIR /usr/local/nvm
@@ -31,4 +41,4 @@ ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
3141
RUN node -v
3242
RUN npm -v
3343

34-
CMD ["bash", "-l"]
44+
CMD ["bash", "-l"]

0 commit comments

Comments
 (0)