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: testing/wip-batrick-testing-20240411.154038~77^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=68f90ad1925f00247ac97588ad9c8029636d007b;p=ceph-ci.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 1dfb5134795..fa1cecc5943 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(