Skip to content

Commit 612a9d6

Browse files
script/build-with-container: remove default --volume arg from ctr build
On the original github pr ceph#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 <[email protected]>
1 parent f6e6188 commit 612a9d6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/script/build-with-container.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,6 @@ def build_container(ctx):
431431
f"--volume={ctx.dnf_cache_dir}:/var/cache/dnf:Z",
432432
"--build-arg=CLEAN_DNF=no",
433433
]
434-
if ctx.cli.homedir:
435-
cwd = pathlib.Path(".").absolute()
436-
cmd.append(f"--volume={cwd}:{ctx.cli.homedir}:Z")
437434
cmd += ["-f", ctx.cli.containerfile, ctx.cli.containerdir]
438435
with ctx.user_command():
439436
_run(cmd, check=True, ctx=ctx)

0 commit comments

Comments
 (0)