Allow non-unique UIDs in bazel docker containers

Allow non-unique UIDs in the bazel docker container in order to avoid failures
using host UIDs that are already present in the image.

Issue #1267

PiperOrigin-RevId: 283456369
This commit is contained in:
Ian Lewis 2019-12-02 17:59:08 -08:00 committed by gVisor bot
parent b41277049c
commit 7ac46c5048
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ bazel-server-start: docker-build
--privileged \
gvisor-bazel \
sh -c "while :; do sleep 100; done" && \
docker exec --user 0:0 -i gvisor-bazel sh -c "groupadd --gid $(GID) --non-unique gvisor && useradd --uid $(UID) --gid $(GID) -d $(HOME) gvisor"
docker exec --user 0:0 -i gvisor-bazel sh -c "groupadd --gid $(GID) --non-unique gvisor && useradd --uid $(UID) --non-unique --gid $(GID) -d $(HOME) gvisor"
bazel-server:
docker exec gvisor-bazel true || \