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>
This commit is contained in:
Robert Marshall 2019-04-03 00:47:41 -04:00
parent 85d47bb29f
commit 22ee1e62a9

View file

@ -3,7 +3,7 @@ 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 \
gcc gcc-c++ git make curl zlib-devel libopenssl-devel glibc-i18ndata glibc-locale hostname \
&& zypper clean -a
ENV LANG en_US.UTF-8