Install chromium in base image

Replace google-chrome with it, it has problems with webdrivers
(DevToolsActivePort file doesn't exist) and we like to use open source
anyway...

We also do not need phantomjs anymore since a long time.
This commit is contained in:
Henne Vogelsang 2019-07-16 23:56:03 +02:00
parent 04616a9b24
commit c28cb5eac4
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0

View file

@ -1,15 +1,5 @@
FROM opensuse/leap:15
# Import google packaging key for chrome
COPY google-packaging.key /tmp
RUN rpm --import /tmp/google-packaging.key
# Enable/Disable the repositories we need/don't need
RUN zypper rr openSUSE-Leap-15.0-Non-Oss openSUSE-Leap-15.0-Update-Non-Oss; \
zypper ar -f https://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_15.0/devel:tools.repo; \
zypper ar -f http://dl.google.com/linux/chrome/rpm/stable/x86_64 google-chrome; \
zypper --gpg-auto-import-keys refresh
# Install our requirements
RUN zypper -n install --no-recommends \
# for compiling assets/gems
@ -23,13 +13,11 @@ RUN zypper -n install --no-recommends \
# for nokogiri
libxml2-devel libxslt-devel \
# for the interactive shell
ack curl wget w3m vim \
# for running our tests
phantomjs which \
ack curl wget w3m vim which \
# as ruby
ruby2.5-devel \
# as browser for feature tests
google-chrome-stable
chromium
# Setup sudo
RUN echo 'osem ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers