Skip to content

Commit 5878d5b

Browse files
authored
Update firefox install in testkit backend docker (#1277)
1 parent 4fdec89 commit 5878d5b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

testkit/Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,24 @@ RUN apt-get update && \
2222
curl \
2323
python3 \
2424
nodejs \
25-
firefox \
2625
nodejs \
26+
wget \
2727
unzip \
2828
&& rm -rf /var/lib/apt/lists/*
2929

30+
RUN install -d -m 0755 /etc/apt/keyrings && \
31+
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null && \
32+
gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); if($0 == "35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3") print "\nThe key fingerprint matches ("$0").\n"; else {exit 1}}' && \
33+
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null && \
34+
echo 'Package: *\nPin: origin packages.mozilla.org\nPin-Priority: 1000' | tee /etc/apt/preferences.d/mozilla && \
35+
apt-get update && apt-get install -y \
36+
libpci-dev \
37+
libcanberra-gtk3-module \
38+
libgles2-mesa-dev \
39+
dbus-x11 \
40+
firefox && \
41+
apt-get clean
42+
3043
RUN /bin/bash -c "hash -d npm"
3144

3245
# Enable tls v1.0

0 commit comments

Comments
 (0)