forked from cerc-io/stack-orchestrator
Add DOCKER_HOST inheriting from the caller, to build environment (#360)
* Add DOCKER_HOST inheriting from the caller, to build environment
* Fix for env var not set
Former-commit-id: 9feff35f53
This commit is contained in:
parent
2b8eccf167
commit
4beb889e9f
@ -95,6 +95,9 @@ def command(ctx, include, exclude, force_rebuild, extra_build_args):
|
||||
container_build_env.update({"CERC_SCRIPT_DEBUG": "true"} if debug else {})
|
||||
container_build_env.update({"CERC_FORCE_REBUILD": "true"} if force_rebuild else {})
|
||||
container_build_env.update({"CERC_CONTAINER_EXTRA_BUILD_ARGS": extra_build_args} if extra_build_args else {})
|
||||
docker_host_env = os.getenv("DOCKER_HOST")
|
||||
if docker_host_env:
|
||||
container_build_env.update({"DOCKER_HOST": docker_host_env})
|
||||
|
||||
def process_container(container):
|
||||
if not quiet:
|
||||
|
Loading…
Reference in New Issue
Block a user