mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 22:24:23 +08:00
Add chromium-driver patch from Alex
This commit is contained in:
parent
248da9475f
commit
4d9156ebf7
2 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
||||||
FROM ruby:2.6.4-buster
|
FROM ruby:2.6.4-buster
|
||||||
MAINTAINER BioSistemika <info@biosistemika.com>
|
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
|
# additional dependecies
|
||||||
# libSSL-1.0 is required by wkhtmltopdf binary
|
# libSSL-1.0 is required by wkhtmltopdf binary
|
||||||
# libreoffice for file preview generation
|
# libreoffice for file preview generation
|
||||||
|
@ -18,7 +23,7 @@ RUN apt-get update -qq && \
|
||||||
sudo graphviz --no-install-recommends \
|
sudo graphviz --no-install-recommends \
|
||||||
libreoffice \
|
libreoffice \
|
||||||
libfile-mimeinfo-perl \
|
libfile-mimeinfo-perl \
|
||||||
chromium-driver && \
|
google-chrome-stable=77.* && \
|
||||||
npm install -g yarn && \
|
npm install -g yarn && \
|
||||||
ln -s /usr/lib/x86_64-linux-gnu/libvips.so.42 /usr/lib/x86_64-linux-gnu/libvips.so && \
|
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/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
@ -58,7 +58,7 @@ ActionController::Base.allow_rescue = false
|
||||||
begin
|
begin
|
||||||
require 'database_cleaner'
|
require 'database_cleaner'
|
||||||
require 'database_cleaner/cucumber'
|
require 'database_cleaner/cucumber'
|
||||||
DatabaseCleaner.strategy = :transaction
|
DatabaseCleaner.strategy = :truncation
|
||||||
rescue NameError
|
rescue NameError
|
||||||
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
|
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue