public inbox for docs@lists.yoctoproject.org
 help / color / mirror / Atom feed
* [PATCH] tools/build-docs-container: use CONTAINERCMD to append args
@ 2025-10-09 10:05 Antonin Godard
  2025-10-09 12:32 ` [docs] " Quentin Schulz
  0 siblings, 1 reply; 3+ messages in thread
From: Antonin Godard @ 2025-10-09 10:05 UTC (permalink / raw)
  To: docs; +Cc: Thomas Petazzoni, Antonin Godard

What we have is OCI = $(which $CONTAINERCMD) = /usr/bin/{docker,podman}.
So we never pass these if conditions. Compare against CONTAINERCMD instead.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/tools/build-docs-container | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/documentation/tools/build-docs-container b/documentation/tools/build-docs-container
index 70e05f295..a93e0668b 100755
--- a/documentation/tools/build-docs-container
+++ b/documentation/tools/build-docs-container
@@ -157,11 +157,11 @@ main ()
     --security-opt label=disable
   )
 
-  if [ "$OCI" = "docker" ]; then
+  if [ "$CONTAINERCMD" = "docker" ]; then
     args_run+=(
       --user="$(id -u)":"$(id -g)"
     )
-  elif [ "$OCI" = "podman" ]; then
+  elif [ "$CONTAINERCMD" = "podman" ]; then
     # we need net access to fetch bitbake terms
     args_run+=(
       --cap-add=NET_RAW

---
base-commit: 09c7800333b17b21e50d2a089a3ae1b123697243
change-id: 20251009-fix-build-docs-container-args-d50c9ecbf7bf

Best regards,
--  
Antonin Godard <antonin.godard@bootlin.com>



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-13  7:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-09 10:05 [PATCH] tools/build-docs-container: use CONTAINERCMD to append args Antonin Godard
2025-10-09 12:32 ` [docs] " Quentin Schulz
2025-10-13  7:08   ` Antonin Godard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox