Introduces openSUSE based docker-compose environment

This commit is contained in:
Henne Vogelsang 2018-09-05 22:49:57 +02:00 committed by Ana María Martínez Gómez
parent 824d83411d
commit 8fd3004d7f
7 changed files with 126 additions and 50 deletions

34
Dockerfile.base Normal file
View file

@ -0,0 +1,34 @@
FROM opensuse/leap:15
# Disable repositories we dont need
RUN zypper rr openSUSE-Leap-15.0-Non-Oss openSUSE-Leap-15.0-Update-Non-Oss
# 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 \
# 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"]