MCPcopy Create free account
hub / github.com/ceph/ceph / _container_build

Method _container_build

src/script/cpatch.py:483–490  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

481 self._container_build()
482
483 def _container_build(self):
484 log.info("Building container image")
485 cmd = [self._ctx.engine, "build", "--tag", self._ctx.target, "."]
486 cmd.append('--net=host')
487 if self._ctx.root_build:
488 cmd.insert(0, "sudo")
489 log.debug("Container build command: %r", cmd)
490 _run(cmd, cwd=self._workdir).check_returncode()
491
492 def _build_tar(
493 self,

Callers 1

buildMethod · 0.95

Calls 5

_runFunction · 0.70
infoMethod · 0.45
appendMethod · 0.45
insertMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected