Allocate a pseudo-tty for exec.
Otherwise Ctrl-C will kill the 'docker exec' as opposed to killing the bazel command being run inside the container. PiperOrigin-RevId: 324079339
This commit is contained in:
parent
78f1a18ab3
commit
877fac4864
|
@ -48,7 +48,10 @@ FULL_DOCKER_RUN_OPTIONS += -v "$(BAZEL_CACHE):$(BAZEL_CACHE)"
|
|||
FULL_DOCKER_RUN_OPTIONS += -v "$(GCLOUD_CONFIG):$(GCLOUD_CONFIG)"
|
||||
FULL_DOCKER_RUN_OPTIONS += -v "/tmp:/tmp"
|
||||
FULL_DOCKER_EXEC_OPTIONS := --user $(UID):$(GID)
|
||||
FULL_DOCKER_EXEC_OPTIONS += -i
|
||||
FULL_DOCKER_EXEC_OPTIONS += --interactive
|
||||
ifeq (true,$(shell [[ -t 0 ]] && echo true))
|
||||
FULL_DOCKER_EXEC_OPTIONS += --tty
|
||||
endif
|
||||
|
||||
# Add docker passthrough options.
|
||||
ifneq ($(DOCKER_PRIVILEGED),)
|
||||
|
|
Loading…
Reference in New Issue