gitlab-build-images/Dockerfile.omnibus-gitlab-opensuse42.3
Robert Marshall 22ee1e62a9 Add hostname executable to OpenSuse 42.3
- The OpenSuse 42.3 container image does not contain the `hostname`
  binary by default. GitlabCtl::Util requires the `hostname` binary
  when invoking its fqdn method.

Related: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2885

Signed-off-by: Robert Marshall <rmarshall@gitlab.com>
2019-04-03 00:53:22 -04:00

23 lines
774 B
Groff

FROM opensuse:42.3
RUN zypper -q -n --gpg-auto-import-keys update \
&& zypper -q -n in -t pattern devel_perl devel_basis \
&& zypper -q -n install \
gcc gcc-c++ git make curl zlib-devel libopenssl-devel glibc-i18ndata glibc-locale hostname \
&& zypper clean -a
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LANGUAGE en_US:en
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
ENV RUBY_VERSION 2.4.5
RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.4/ruby-${RUBY_VERSION}.tar.gz" \
| tar -xzC /tmp \
&& cd "/tmp/ruby-${RUBY_VERSION}" \
&& ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\
&& make \
&& make install \
&& cd / \
&& rm -rf "/tmp/ruby-${RUBY_VERSION}" \
&& gem install bundler --no-document