Lines Matching +full:build +full:- +full:disabled
12 # the top-level directory.
65 return _bytes_checksum(text.encode('utf-8'))
68 return open(path, 'rt', encoding='utf-8').read()
81 commands += [["docker"], ["sudo", "-n", "docker"]]
121 ldd_re = re.compile(r"(?:\S+ => )?(\S*) \(:?0x[0-9a-f]+\)")
123 ldd_output = subprocess.check_output(["ldd", executable]).decode('utf-8')
132 print("%s had no associated libraries (static build?)" % (executable))
145 This does rely on the host file-system being fairly multi-arch
199 # special case for Debian linux-user images
201 img_name = "debian-bootstrap"
250 cmd = ["ps", "-q"]
252 cmd.append("-a")
254 filter = "--filter=label=com.qemu.instance.uuid"
265 self._do(["rm", "-f", i])
278 encoding='utf-8',
284 **kwargs).decode('utf-8')
299 return labels.get("com.qemu.dockerfile-checksum", "")
308 return -1
313 encoding='utf-8',
321 tmp_df.write("RUN id %s 2>/dev/null || useradd -u %d -U %s" %
325 tmp_df.write("LABEL com.qemu.dockerfile-checksum=%s\n" % (checksum))
327 tmp_df.write("LABEL com.qemu.%s-checksum=%s\n" % (f, c))
331 build_args = ["build", "-t", tag, "-f", tmp_df.name]
333 build_args += ["--build-arg", "BUILDKIT_INLINE_CACHE=1"]
339 build_args += ["--cache-from", cache]
349 self._do_check(["build", "-t", tag, "-"], quiet=quiet, stdin=tarball)
365 cmd = [ "-u", str(uid) ] + cmd
368 cmd.insert(0, '--userns=keep-id')
370 ret = self._do_check(["run", "--rm", "--label",
386 parser.add_argument("--quiet", action="store_true",
406 parser.add_argument("--keep", action="store_true",
408 parser.add_argument("--run-as-current-user", action="store_true",
417 """ Build docker image out of a dockerfile. Arg: <tag> <dockerfile>"""
418 name = "build"
421 parser.add_argument("--include-executable", "-e",
425 parser.add_argument("--skip-binfmt",
428 parser.add_argument("--extra-files", nargs='*',
432 parser.add_argument("--add-current-user", "-u", dest="user",
435 parser.add_argument("--registry", "-r",
437 parser.add_argument("-t", dest="tag",
439 parser.add_argument("-f", dest="dockerfile",
447 if "--no-cache" not in argv and \
452 # Create a docker context directory for the build
463 # Is there a .pre file to run in the build context?
482 # or any library won't trigger another build.
490 argv += ["--build-arg=" + k.lower() + "=" + v
527 parser.add_argument("--executable",
529 parser.add_argument("--add-current-user", "-u", dest="user",
534 # Create a temporary tarball with our whole build context and
550 print("binfmt_misc not enabled, update disabled")
575 df.write("RUN id %s 2>/dev/null || useradd -u %d -U %s" %
578 df_bytes = BytesIO(bytes(df.getvalue(), "UTF-8"))
590 # Run the build with our tarball context
638 parser.add_argument("--image", "-i", required=True,
640 parser.add_argument("--cc", default="cc",
642 parser.add_argument("--source-path", "-s", nargs="*", dest="paths",
647 if argv and argv[0] == "--":
650 cmd = ["-w", cwd,
651 "-v", "%s:%s:rw" % (cwd, cwd)]
654 cmd += ["-v", "%s:%s:ro,z" % (p, p)]
667 parser.add_argument("--engine", type=EngineEnum.argparse, choices=list(EngineEnum),