Add DOCKER_HOST inheriting from the caller, to build environment

This commit is contained in:
David Boreham 2023-04-20 17:17:18 -06:00
parent e8ec090f1d
commit c2524c5eb2

View File

@ -90,6 +90,7 @@ def command(ctx, include, exclude, force_rebuild, extra_build_args):
"CERC_CONTAINER_BASE_DIR": container_build_dir,
"CERC_HOST_UID": f"{os.getuid()}",
"CERC_HOST_GID": f"{os.getgid()}",
"DOCKER_HOST": os.environ["DOCKER_HOST"], # TODO add check for DOCKER_HOST not set at all
"DOCKER_BUILDKIT": "0"
}
container_build_env.update({"CERC_SCRIPT_DEBUG": "true"} if debug else {})