]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/build-with-container: remove default --volume arg from ctr build
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 19 Feb 2025 18:20:36 +0000 (13:20 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 6 Mar 2025 21:14:27 +0000 (16:14 -0500)
On the original github pr #59841 user fayak kindly informed us that the
--volume option was not supported by docker build. Since this section
was a leftover from a previous way of constructing the builder image and
was no longer needed we simply removed it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 612a9d6808f4f1d4f93aeca055acba064e7a1209)

src/script/build-with-container.py

index f6692e7a4af229c7d6ab390c5c373bae24b8d1c4..f1e5bcd77fe0f3f567a51f7cf723f2383d459008 100755 (executable)
@@ -431,9 +431,6 @@ def build_container(ctx):
             f"--volume={ctx.dnf_cache_dir}:/var/cache/dnf:Z",
             "--build-arg=CLEAN_DNF=no",
         ]
-    if ctx.cli.homedir:
-        cwd = pathlib.Path(".").absolute()
-        cmd.append(f"--volume={cwd}:{ctx.cli.homedir}:Z")
     cmd += ["-f", ctx.cli.containerfile, ctx.cli.containerdir]
     with ctx.user_command():
         _run(cmd, check=True, ctx=ctx)