Install chrome in the development env

To be able to run feature tests against it.
This commit is contained in:
Henne Vogelsang 2019-02-20 17:16:51 +01:00
parent 9b5adb0bbc
commit 9c098e600b
3 changed files with 248 additions and 6 deletions

View file

@ -1,8 +1,13 @@
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 \
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
@ -18,11 +23,13 @@ RUN zypper -n install --no-recommends \
# for nokogiri
libxml2-devel libxslt-devel \
# for the interactive shell
ack curl wget w3m \
ack curl wget w3m vim \
# for running our tests
phantomjs which \
# as ruby
ruby2.5-devel
ruby2.5-devel \
# as browser for feature tests
google-chrome-stable
# Setup sudo
RUN echo 'osem ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
@ -31,7 +38,7 @@ RUN echo 'osem ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
RUN echo 'install: --no-format-executable' >> /etc/gemrc
# Install bundler & foreman
RUN gem install bundler foreman
RUN gem install bundler:1.17.3 foreman
# Create our user
RUN useradd -m --user-group osem