File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ RUN chown -R discourse . &&\
1717
1818FROM base AS with_browsers
1919
20- RUN npx @puppeteer/browsers install chrome@stable &&\
20+ ENV TESTEM_DEFAULT_BROWSER Chromium
21+ ADD install-chrome /tmp/install-chrome
22+ RUN /tmp/install-chrome &&\
2123 apt update &&\
2224 apt install -y libgconf-2-4 libxss1 firefox-esr &&\
2325 cd /tmp && wget -q "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" -O firefox.tar.bz2 &&\
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ # https://googlechromelabs.github.io/chrome-for-testing/ doesn't provide
5+ # linux/arm64 binaries for chrome or chromedriver yet. Therefore on arm64, we
6+ # install chromium instead of chrome.
7+ if [ " $( dpkg --print-architecture) " = " arm64" ]; then
8+ apt update && apt install -y chromium-driver
9+ else
10+ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - && \
11+ echo " deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \
12+ apt update && \
13+ apt install -y google-chrome-stable chromium-driver
14+ fi
You can’t perform that action at this time.
0 commit comments