mirror of
https://github.com/ceph/ceph
synced 2025-03-19 00:45:00 +00:00
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 <jmulligan@redhat.com>
(cherry picked from commit 612a9d6808
)
This commit is contained in:
parent
915f6210d7
commit
e56df19133
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user