Skip to content

Commit

Permalink
ci: forces groupadd to do not fail when group already exists (#2422)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel <gsagula@gmail.com>
  • Loading branch information
Gabriel Sagula authored and htuch committed Jan 21, 2018
1 parent 29989a3 commit d076db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/run_envoy_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ mkdir -p "${ENVOY_DOCKER_BUILD_DIR}"
# Since we specify an explicit hash, docker-run will pull from the remote repo if missing.
docker run --rm -t -i -u "${USER}":"${USER_GROUP}" -v "${ENVOY_DOCKER_BUILD_DIR}":/build \
-v "$PWD":/source -e NUM_CPUS --cap-add SYS_PTRACE "${IMAGE_NAME}":"${IMAGE_ID}" \
/bin/bash -lc "groupadd --gid $(id -g) envoygroup && useradd --uid $(id -u) --gid $(id -g) \
/bin/bash -lc "groupadd --gid $(id -g) -f envoygroup && useradd --uid $(id -u) --gid $(id -g) \
--no-create-home --home-dir /source envoybuild && su envoybuild -c \"cd source && $*\""

0 comments on commit d076db6

Please sign in to comment.