From: John Mulligan Date: Wed, 27 Mar 2024 18:32:10 +0000 (-0400) Subject: script/cpatch.py: run container build with host networking X-Git-Tag: v20.0.0~2251^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F56533%2Fhead;p=ceph.git script/cpatch.py: run container build with host networking Applies host networking to building the image. This is handy when using custom networking hacks that redirect repos, etc. Signed-off-by: John Mulligan --- diff --git a/src/script/cpatch.py b/src/script/cpatch.py index 1dfb51347951..fa1cecc5943b 100755 --- a/src/script/cpatch.py +++ b/src/script/cpatch.py @@ -467,8 +467,10 @@ class Builder: def _container_build(self): log.info("Building container image") cmd = [self._ctx.engine, "build", "--tag", self._ctx.target, "."] + cmd.append('--net=host') if self._ctx.root_build: cmd.insert(0, "sudo") + log.debug("Container build command: %r", cmd) _run(cmd, cwd=self._workdir).check_returncode() def _build_tar(