Skip to content

Commit

Permalink
Merge pull request #577 from alphagov/install-chromium-with-driver
Browse files Browse the repository at this point in the history
Install Chromium browser and its webdriver
  • Loading branch information
ollietreend authored Mar 1, 2022
2 parents 346a719 + 3017e3a commit 3cf2737
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions Dockerfile.govuk-base
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
# Install packages for building ruby
FROM buildpack-deps

# Install chrome and its dependencies
RUN apt-get update -qq
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 2>&1 && \
apt-get install -y ./google-chrome*.deb && \
rm ./google-chrome*.deb
# Install chromium browser and its webdriver
RUN apt-get update -qq && apt-get install -y chromium chromium-driver

# Enable no-sandbox for chrome so that it can run as a root user
ENV GOVUK_TEST_CHROME_NO_SANDBOX 1
Expand Down
7 changes: 2 additions & 5 deletions projects/asset-manager/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Install packages for building ruby
FROM buildpack-deps

# Install chrome and its dependencies
RUN apt-get update -qq
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 2>&1 && \
apt-get install -y ./google-chrome*.deb && \
rm ./google-chrome*.deb
# Install chromium browser and its webdriver
RUN apt-get update -qq && apt-get install -y chromium chromium-driver

# Enable no-sandbox for chrome so that it can run as a root user
ENV GOVUK_TEST_CHROME_NO_SANDBOX 1
Expand Down
7 changes: 2 additions & 5 deletions projects/whitehall/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Install packages for building ruby
FROM buildpack-deps

# Install chrome and its dependencies
RUN apt-get update -qq
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 2>&1 && \
apt-get install -y ./google-chrome*.deb && \
rm ./google-chrome*.deb
# Install chromium browser and its webdriver
RUN apt-get update -qq && apt-get install -y chromium chromium-driver

# Enable no-sandbox for chrome so that it can run as a root user
ENV GOVUK_TEST_CHROME_NO_SANDBOX 1
Expand Down

0 comments on commit 3cf2737

Please sign in to comment.