File Dockerfile of Package ci-libyui-container

#!BuildTag: libyui-devel

# NOTE: when building in OBS it actually is this image:
# https://build.opensuse.org/package/show/YaST:SLE-15:SP5/opensuse-leap_15.5-image
# not the Docker hub image!!
FROM opensuse/leap:15.5

# do not install the files marked as documentation (use "rpm --excludedocs")
RUN sed -i -e "s/^.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/" /etc/zypp/zypp.conf

# Install Rubocop from YaST:SLE-15:SP5
RUN zypper addrepo --refresh https://download.opensuse.org/repositories/YaST:/SLE-15:/SP5/openSUSE_Leap_15.5/ yast

# import the OBS GPG key
COPY devel:libraries:libyui.pub /usr/share/gpg-keys/
RUN rpm --import /usr/share/gpg-keys/devel:libraries:libyui.pub
COPY YaST:Head.pub /usr/share/gpg-keys/
RUN rpm --import /usr/share/gpg-keys/YaST:Head.pub

RUN zypper --non-interactive install --no-recommends \
  boost-devel \
  brp-check-suse \
  brp-extract-appdata \
  cmake \
  doxygen \
  fontconfig-devel \
  gcc-c++ \
  git \
  graphviz \
  swig \
  python-devel \
  ruby-devel \
  graphviz-devel \
  jsoncpp-devel \
  libmicrohttpd-devel \
  libboost_test-devel \
  ncurses-devel \
  libzypp-devel \
  obs-service-source_validator \
  perl-JSON \
  pkg-config \
  'pkgconfig(Qt5Core)' \
  'pkgconfig(Qt5Gui)' \
  'pkgconfig(Qt5Svg)' \
  'pkgconfig(Qt5Widgets)' \
  'pkgconfig(Qt5X11Extras)' \
  "rubygem(libyui-rake)" \
  ShellCheck \
  rpm-build \
  systemd-devel \
  tack \
  && zypper clean --all \
  && rm -rf /usr/lib*/ruby/gems/*/cache/ \
  && rm -rf /usr/share/doc/ \
  && find /usr/lib/locale/* -maxdepth 1 | grep -v -E "(en_US|cs_CZ|es_ES|de_DE|C.utf8)" | xargs rm -rf \
  && find /usr/share/locale -name "*.mo" -delete

ENV LC_ALL=en_US.UTF-8
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
openSUSE Build Service is sponsored by