]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/build-with-container: fix building on docker
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 14 Mar 2025 18:39:09 +0000 (14:39 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Fri, 15 Aug 2025 17:55:49 +0000 (13:55 -0400)
Fix building images on docker by using the `--pull` option instead of
`--pull=always`. The latter apparently only works on podman. The former
should do the same thing on both container engines.

Fixes: https://tracker.ceph.com/issues/70470
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit bc80c5fde5944f04a31d3f9f29db145b05214ab3)

src/script/build-with-container.py

index 54178e3acf77e16d91023a0aa5b5904095a26374..28f7a2c65803ee7c47372af23415b71e3e6b5454 100755 (executable)
@@ -474,7 +474,7 @@ def build_container(ctx):
     cmd = [
         ctx.container_engine,
         "build",
-        "--pull=always",
+        "--pull",
         "-t",
         ctx.image_name,
         f"--build-arg=JENKINS_HOME={ctx.cli.homedir}",