From 68f90ad1925f00247ac97588ad9c8029636d007b Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 27 Mar 2024 14:32:10 -0400 Subject: [PATCH] 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 --- src/script/cpatch.py | 2 ++ 1 file changed, 2 insertions(+) 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( -- 2.39.5