mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

This adds a script for building a container and building the documentation within that new container image. The openSUSE instructions now require a --non-interactive flag otherwise they fail to run. Sadly there doesn't seem to be a way to have this in an environment variable à-la DEBIAN_FRONTEND=noninteractive, so we simply do a sed on the scripts to add --non-interactive to the zypper commands to avoid having those in the instructions provided to our users. Somehow tzdata package in Ubuntu doesn't respect DEBIAN_FRONTEND=noninteractive hence why the timezone needs to be set by hand. (From yocto-docs rev: cefced592f1302fcb65afa9e0b1f9f5ff1570e93) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Reviewed-by: Antonin Godard <antonin.godard@bootlin.com> Tested-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
27 lines
732 B
Plaintext
27 lines
732 B
Plaintext
ARG ARG_FROM=debian:12 # default value to avoid warning
|
|
FROM $ARG_FROM
|
|
|
|
ARG DOCS=ubuntu_docs.sh
|
|
ARG DOCS_PDF=ubuntu_docs_pdf.sh
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ARG TZ=Europe/Vienna
|
|
|
|
# relative to the location of the dockerfile
|
|
COPY --chmod=777 ${DOCS} /temp/host_packages_docs.sh
|
|
COPY --chmod=777 ${DOCS_PDF} /temp/host_packages_docs_pdf.sh
|
|
|
|
RUN ln -fs "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
|
&& apt-get update \
|
|
&& apt-get install -y sudo \
|
|
&& yes | /temp/host_packages_docs.sh \
|
|
&& yes | /temp/host_packages_docs_pdf.sh \
|
|
&& apt-get --yes autoremove \
|
|
&& apt-get clean \
|
|
&& rm -rf /temp
|
|
|
|
RUN git config --global --add safe.directory /docs
|
|
|
|
ENTRYPOINT ["/usr/bin/env", "make", "-C", "documentation/"]
|
|
CMD ["publish"]
|