summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-07-13 09:37:47 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-13 09:39:06 -0700
commit7ff4649b3c61bbf70ea8d76b509a7ae620a45ac7 (patch)
treecee0377c0abc465f757e46c9503ff1d9dfbef027
parent9c32fd3f4d8f6e63d922c1c58b7d1f1f504fa2bc (diff)
Use host networking for build container.
This will allow the use of default credentials. PiperOrigin-RevId: 320972241
-rw-r--r--tools/bazel.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bazel.mk b/tools/bazel.mk
index 9f4a40669..fa86bd8ec 100644
--- a/tools/bazel.mk
+++ b/tools/bazel.mk
@@ -70,6 +70,7 @@ bazel-server-start: load-default ## Starts the bazel server.
-v "$(CURDIR):$(CURDIR)" \
--workdir "$(CURDIR)" \
--entrypoint "" \
+ --network=host \
$(FULL_DOCKER_RUN_OPTIONS) \
gvisor.dev/images/default \
sh -c "groupadd --gid $(GID) --non-unique $(USER) && \