mirror of
https://github.com/openSUSE/osem.git
synced 2026-04-20 06:53:32 -04:00
41 lines
1.0 KiB
Docker
41 lines
1.0 KiB
Docker
FROM opensuse/leap:15
|
|
|
|
# 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 --gpg-auto-import-keys refresh
|
|
|
|
# Install our requirements
|
|
RUN zypper -n install --no-recommends \
|
|
# for compiling assets/gems
|
|
nodejs8 gcc-c++ git-core make \
|
|
# for ...
|
|
ImageMagick \
|
|
# for bundler
|
|
sudo \
|
|
# as databases
|
|
libmariadb-devel postgresql-devel sqlite3-devel \
|
|
# for nokogiri
|
|
libxml2-devel libxslt-devel \
|
|
# for the interactive shell
|
|
ack curl wget w3m \
|
|
# for running our tests
|
|
phantomjs which \
|
|
# as ruby
|
|
ruby2.5-devel
|
|
|
|
# Setup sudo
|
|
RUN echo 'osem ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
|
|
# Disable versioned gem binary names
|
|
RUN echo 'install: --no-format-executable' >> /etc/gemrc
|
|
|
|
# Install bundler & foreman
|
|
RUN gem install bundler foreman
|
|
|
|
# Create our user
|
|
RUN useradd -m --user-group osem
|
|
|
|
CMD ["/bin/bash", "-l"]
|
|
|