File Dockerfile of Package daps-toolchain-sbp-hack

#!BuildTag: opensuse-daps-toolchain-sbp-hack

# For ideas:
# https://build.opensuse.org/package/show/home:darix:apps/container-gitlab-runner

FROM opensuse/leap:15.4

MAINTAINER SUSE Documentation Team <doc-team@suse.com>

# Repositories from the project config are used by default.

# Put additional files into container
COPY rm-packages \
     rm-files \
       /root/

RUN zypper ar https://download.opensuse.org/repositories/Documentation:/Containers/openSUSE_Leap_15.3/ "DocCont-Leap153"

# Install packages

# sgml-skel needs to be installed first, as it contains the
# `update-xml-catalogs` script which is needed during package build

# `sil-charis-fonts` needs to be downgraded to 5.x (Leap 15.3 default),
# as FOP has issues with 6.0001 (now in M17N:fonts)

# this layer adds the bulk of items to the container: we try to do
# additions/deletions all at once to avoid layering deletions on top of
# additions which would result in a container that is larger, not smaller

# Hack: We delete the XHTML version of the suse2013-sbp stylesheets, so we can
# use a FALLBACK_STYLEROOT styleroot with the suse2021-ns stylesheets and use
# their XHTML styles. (FIXME)

RUN \
  zypper -n install -y sgml-skel; \
  zypper -n install -y \
    curl \
    daps \
    ditaa \
    geekodoc \
    git \
    hpe-xsl-stylesheets \
    libreoffice-draw \
    novdoc \
    ruby2.5-rubygem-asciidoctor \
    suse-doc-style-checker \
    suse-xsl-stylesheets \
    suse-xsl-stylesheets-sbp \
    tar \
    w3m \
    jq; \
  zypper clean --all; \
  rpm -e --nodeps $(cat /root/rm-packages); \
  rm -rf $(cat /root/rm-files); \
  rm /root/rm-packages /root/rm-files; \
  rm -rf /usr/share/xml/docbook/stylesheet/suse2013-sbp*/xhtml

RUN \
  mkdir -p /root/.config/daps; \
  echo 'DOCBOOK5_RNG_URI="https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/geekodoc5-flat.rnc"' > /root/.config/daps/dapsrc

ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV TERM xterm-256color
openSUSE Build Service is sponsored by