Skip to content

Commit

Permalink
Fix error in lambda docker image that occured because the compression…
Browse files Browse the repository at this point in the history
… algorithm of the firefox download changed to xz instead of bz2

Co-authored-by: Nico Barton <nico.barton@otto.de>
Co-authored-by: Marco Geweke <marco.geweke@otto.de>
  • Loading branch information
3 people committed Feb 5, 2025
1 parent 05f5daf commit 75395a3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN dnf install -y \
glibc-devel \
gtk3 \
ipa-gothic-fonts \
jq \
libdrm \
libXScrnSaver \
libXcomposite \
Expand All @@ -37,30 +38,30 @@ RUN dnf install -y \
libxkbcommon \
mesa-libgbm \
libgbm \
libva \
nss \
pango \
pulseaudio-libs \
procps \
tar \
util-linux \
vulkan \
wget \
xorg-x11-fonts-100dpi \
xorg-x11-fonts-75dpi \
xorg-x11-fonts-Type1 \
xorg-x11-fonts-misc \
xorg-x11-utils \
xdg-utils \
vulkan \
libva \
pulseaudio-libs \
nss \
jq
xz

RUN mkdir ${LAMBDA_TASK_ROOT}/lib
RUN mkdir ${LAMBDA_TASK_ROOT}/lib/firefox
RUN wget --no-check-certificate -nv 'https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US' -O /tmp/firefox.tar.bz2
RUN tar -xf /tmp/firefox.tar.bz2 --directory ${LAMBDA_TASK_ROOT}/lib/
RUN wget --no-check-certificate -nv 'https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US' -O /tmp/firefox.tar.xz
RUN tar -xf /tmp/firefox.tar.xz --directory ${LAMBDA_TASK_ROOT}/lib/
RUN ln -s ${LAMBDA_TASK_ROOT}/lib/firefox/firefox ${LAMBDA_TASK_ROOT}/firefox
RUN ln -s ${LAMBDA_TASK_ROOT}/lib/firefox/firefox /usr/bin/firefox
RUN rm /tmp/firefox.tar.bz2
RUN rm /tmp/firefox.tar.xz

#RUN CHROME_FOR_TESTING_RELEASE="$(curl --silent https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq '.channels.Stable')"; \
RUN curl --insecure https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone-with-downloads.json
Expand Down

0 comments on commit 75395a3

Please sign in to comment.