Add chromium-driver patch from Alex

This commit is contained in:
Jure Grabnar 2019-09-30 16:08:44 +02:00
parent 248da9475f
commit 4d9156ebf7
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,11 @@
FROM ruby:2.6.4-buster
MAINTAINER BioSistemika <info@biosistemika.com>
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list && \
wget -O /usr/bin/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/77.0.3865.40/chromedriver_linux64.zip && \
unzip /usr/bin/chromedriver_linux64.zip -d /usr/bin/
# additional dependecies
# libSSL-1.0 is required by wkhtmltopdf binary
# libreoffice for file preview generation
@ -18,7 +23,7 @@ RUN apt-get update -qq && \
sudo graphviz --no-install-recommends \
libreoffice \
libfile-mimeinfo-perl \
chromium-driver && \
google-chrome-stable=77.* && \
npm install -g yarn && \
ln -s /usr/lib/x86_64-linux-gnu/libvips.so.42 /usr/lib/x86_64-linux-gnu/libvips.so && \
rm -rf /var/lib/apt/lists/*

View file

@ -58,7 +58,7 @@ ActionController::Base.allow_rescue = false
begin
require 'database_cleaner'
require 'database_cleaner/cucumber'
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.strategy = :truncation
rescue NameError
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
end