Simplify chromedriver installation with webdrivers

This gem will automatically install chromedriver based on the installed
version of Chrome/Chromium.
This commit is contained in:
Javi Martín
2020-05-16 14:23:10 +02:00
parent 876f209729
commit 59b625a5f9
6 changed files with 7 additions and 17 deletions

View File

@@ -41,14 +41,8 @@ RUN gem install bundler
# Finish establishing our Ruby environment
RUN bundle install --full-index
# Install Chromium and ChromeDriver for E2E integration tests
# Install Chromium for E2E integration tests
RUN apt-get update -qq && apt-get install -y chromium
RUN wget -N http://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
RUN unzip chromedriver_linux64.zip
RUN chmod +x chromedriver
RUN mv -f chromedriver /usr/local/share/chromedriver
RUN ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
RUN ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
# Copy the Rails application into place
COPY . .