From: Quentin Schulz <quentin.schulz@cherry.de>
To: antonin.godard@bootlin.com, docs@lists.yoctoproject.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [docs] [PATCH v2 1/5] tools/build-docs-container: move container files in their own directory
Date: Thu, 11 Dec 2025 13:26:10 +0100 [thread overview]
Message-ID: <b6c3573d-91f1-4635-b77f-c6daa1a7b0db@cherry.de> (raw)
In-Reply-To: <20251211-build-docs-container-tlmgr-v2-1-58719c103a50@bootlin.com>
Hi Antonin,
On 12/11/25 10:06 AM, Antonin Godard via lists.yoctoproject.org wrote:
> Create a directory to hold the Containerfiles as they were lying next to
> the scripts. Change the build context of the docker build command to
> build from SCRIPT_DIR and pass the host packages scripts and container
> file relative to it.
>
It's unclear what this helps with. (I'm assuming this could be a remnant
from last version's ENTRYPOINT support attempt?).
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> ---
> documentation/tools/build-docs-container | 13 ++++++-------
> .../tools/{ => containerfiles}/Containerfile.almalinux | 0
> documentation/tools/{ => containerfiles}/Containerfile.apt | 0
> .../tools/{ => containerfiles}/Containerfile.debian | 0
> documentation/tools/{ => containerfiles}/Containerfile.dnf | 0
> .../tools/{ => containerfiles}/Containerfile.fedora | 0
> .../tools/{ => containerfiles}/Containerfile.ubuntu | 0
> .../tools/{ => containerfiles}/Containerfile.zypper | 0
> 8 files changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/documentation/tools/build-docs-container b/documentation/tools/build-docs-container
> index b91a6daa9..7d25b15b9 100755
> --- a/documentation/tools/build-docs-container
> +++ b/documentation/tools/build-docs-container
> @@ -23,7 +23,6 @@ set -eu -o pipefail
> SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
> CONTAINERCMD=${CONTAINERCMD:-docker}
> DOCS_DIR="$SCRIPT_DIR/../.."
> -SH_DIR="$SCRIPT_DIR/host_packages_scripts"
> INCLUDE_ESSENTIAL_PACKAGES=${INCLUDE_ESSENTIAL_PACKAGES:-0}
>
> function usage()
> @@ -140,12 +139,12 @@ main ()
> --tag "yocto-docs-$sanitized_dockername:latest" \
> --build-arg ARG_FROM="docker.io/$image" \
> --build-arg INCLUDE_ESSENTIAL_PACKAGES="${INCLUDE_ESSENTIAL_PACKAGES}" \
> - --build-arg ESSENTIAL="$essential" \
> - --build-arg DOCS="$docs" \
> - --build-arg DOCS_PDF="$docs_pdf" \
> - --build-arg PIP3="${pip3:-}" \
> - --file "$SCRIPT_DIR/$containerfile" \
> - "$SH_DIR/"
> + --build-arg ESSENTIAL="host_packages_scripts/$essential" \
> + --build-arg DOCS="host_packages_scripts/$docs" \
> + --build-arg DOCS_PDF="host_packages_scripts/$docs_pdf" \
> + --build-arg PIP3="host_packages_scripts/${pip3:-}" \
> + --file "$SCRIPT_DIR/containerfiles/$containerfile" \
> + "$SCRIPT_DIR"
>
This seems to be doing two things: moving Containerfile.* into a subdir
containerfiles and changing the context dir from SH_DIR to SCRIPT_DIR.
Is there a reason they are both done in the same commit? Is the latter
really necessary (I'm not sure it helps in terms of readability?).
Looks ok otherwise.
Cheers,
Quentin
next prev parent reply other threads:[~2025-12-11 12:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 9:06 [PATCH v2 0/5] Add missing CentOS Stream / RockyLinux distros to the system-requirements.rst doc Antonin Godard
2025-12-11 9:06 ` [PATCH v2 1/5] tools/build-docs-container: move container files in their own directory Antonin Godard
2025-12-11 12:26 ` Quentin Schulz [this message]
2025-12-12 8:19 ` [docs] " Antonin Godard
2025-12-11 9:06 ` [PATCH v2 2/5] Makefile: fix rsvg-convert --format capitalization Antonin Godard
2025-12-11 12:27 ` [docs] " Quentin Schulz
2025-12-11 9:06 ` [PATCH v2 3/5] tools/build-docs-container: add CentOS Stream 9 support Antonin Godard
2025-12-11 12:43 ` [docs] " Quentin Schulz
2025-12-11 9:06 ` [PATCH v2 4/5] ref-manual/system-requirements.rst: fix AlmaLinux PDF build Antonin Godard
2025-12-11 13:55 ` [docs] " Quentin Schulz
2025-12-11 9:06 ` [PATCH v2 5/5] ref-manual/system-requirements.rst: add RockyLinux install instructions Antonin Godard
2025-12-11 13:59 ` [docs] " Quentin Schulz
2026-01-05 13:52 ` [PATCH v2 0/5] Add missing CentOS Stream / RockyLinux distros to the system-requirements.rst doc Antonin Godard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6c3573d-91f1-4635-b77f-c6daa1a7b0db@cherry.de \
--to=quentin.schulz@cherry.de \
--cc=antonin.godard@bootlin.com \
--cc=docs@lists.yoctoproject.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox