Skip to content

Commit

Permalink
Update docker test image (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand authored Dec 26, 2024
1 parent f1e1007 commit dd7c5f0
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions test/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM ubuntu:22.04
FROM --platform=linux/amd64 ubuntu:24.04

ENV FIREFOX_VERSION="120.0"
ENV CHROME_VERSION="119.0.6045.159-1"
ENV FIREFOX_VERSION="133.0"
ENV PHANTOMJS_VERSION="2.1.1"
ENV GECKODRIVER_VERSION="0.33.0"
ENV CHROMEDRIVER_VERSION="119.0.6045.105"
ENV GECKODRIVER_VERSION="0.35.0"

ENV INSTALL="apt-get install -y --no-install-recommends"

Expand All @@ -14,7 +12,7 @@ RUN apt-get update
RUN $INSTALL wget ca-certificates bzip2 unzip

# firefox setup
RUN $INSTALL libgtk-3-0 libasound2 libx11-xcb1
RUN $INSTALL libgtk-3-0t64 libasound2t64 libx11-xcb1

RUN wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2 && \
tar -xf firefox-${FIREFOX_VERSION}.tar.bz2 && \
Expand All @@ -33,21 +31,12 @@ RUN wget https://github.com/mozilla/geckodriver/releases/download/v${GECKODRIVER
RUN geckodriver --version

# chrome setup
RUN wget https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb && \
$INSTALL ./google-chrome-stable_${CHROME_VERSION}_amd64.deb && \
rm google-chrome-stable_${CHROME_VERSION}_amd64.deb
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
$INSTALL ./google-chrome-stable_current_amd64.deb && \
rm google-chrome-stable_current_amd64.deb

RUN google-chrome --version

# chromedirver setup
RUN wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/${CHROMEDRIVER_VERSION}/linux64/chromedriver-linux64.zip && \
unzip chromedriver-linux64.zip && \
mv chromedriver-linux64/chromedriver /usr/local/bin && \
rm -rf chromedriver-linux64 && \
rm chromedriver-linux64.zip

RUN geckodriver --version

# phantomjs setup
RUN $INSTALL build-essential chrpath libssl-dev libxft-dev \
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
Expand All @@ -66,6 +55,6 @@ RUN phantomjs --version
# install python dependencies
ADD requirements.txt .
RUN $INSTALL python3 python3-pip && \
pip install --upgrade pip && \
pip config set global.break-system-packages true && \
pip install -r requirements.txt && \
rm requirements.txt
rm requirements.txt \

0 comments on commit dd7c5f0

Please sign in to comment.