summaryrefslogtreecommitdiffstats
path: root/documentation/tools/Containerfile.zypper
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/tools/Containerfile.zypper')
-rw-r--r--documentation/tools/Containerfile.zypper32
1 files changed, 32 insertions, 0 deletions
diff --git a/documentation/tools/Containerfile.zypper b/documentation/tools/Containerfile.zypper
new file mode 100644
index 0000000000..f27ad1b476
--- /dev/null
+++ b/documentation/tools/Containerfile.zypper
@@ -0,0 +1,32 @@
1ARG ARG_FROM=opensuse/leap:15.4 # default value to avoid warning
2FROM $ARG_FROM
3
4ARG DOCS=opensuse_docs.sh
5ARG DOCS_PDF=opensuse_docs_pdf.sh
6ARG PIP3=pip3_docs.sh
7
8# relative to the location of the dockerfile
9COPY --chmod=777 ${DOCS} /temp/host_packages_docs.sh
10COPY --chmod=777 ${DOCS_PDF} /temp/host_packages_docs_pdf.sh
11COPY --chmod=777 ${PIP3} /temp/pip3_docs.sh
12
13# Zypper doesn't have environment variables to specify whether to run in
14# non-interactive mode like Debian does with DEBIAN_FRONTEND and piping yes to
15# the scripts doesn't need to be enough as well, so let's force all zypper calls
16# to be non-interactive by adding the appropriate flag in the scripts.
17RUN for script in /temp/*.sh; do \
18 sed -i 's/zypper/zypper --non-interactive/' $script; \
19 done
20
21RUN zypper update -y \
22 && zypper install -y sudo \
23 && yes | /temp/host_packages_docs.sh \
24 && yes | /temp/host_packages_docs_pdf.sh \
25 && yes | /temp/pip3_docs.sh \
26 && zypper clean --all \
27 && rm -rf /temp
28
29RUN git config --global --add safe.directory /docs
30
31ENTRYPOINT ["/usr/bin/env", "make", "-C", "documentation/"]
32CMD ["publish"]