From e56df19133b2c5dbde3007f315eb861facf0134d Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 19 Feb 2025 13:20:36 -0500 Subject: [PATCH] script/build-with-container: remove default --volume arg from ctr build 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 (cherry picked from commit 612a9d6808f4f1d4f93aeca055acba064e7a1209) --- src/script/build-with-container.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/script/build-with-container.py b/src/script/build-with-container.py index f6692e7a4af22..f1e5bcd77fe0f 100755 --- a/src/script/build-with-container.py +++ b/src/script/build-with-container.py @@ -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) -- 2.39.5