We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a200492 commit 2848261Copy full SHA for 2848261
ci/docker-compose.yml
@@ -97,6 +97,15 @@ x-envoy-build-base: &envoy-build-base
97
chown envoybuild:envoybuild /build
98
chown envoybuild /proc/self/fd/2 2>/dev/null || true
99
[[ -e /entrypoint-extra.sh ]] && /entrypoint-extra.sh
100
+
101
+ if [ -S /var/run/docker.sock ]; then
102
+ DOCKER_GID=$(stat -c '%g' /var/run/docker.sock)
103
+ if ! getent group "$DOCKER_GID" >/dev/null; then
104
+ groupadd -g "$DOCKER_GID" docker_sock
105
+ fi
106
+ usermod -a -G "$(getent group "$DOCKER_GID" | cut -d: -f1)" envoybuild
107
108
109
sudo -EHs -u envoybuild bash -c 'cd ${ENVOY_DOCKER_SOURCE_DIR:-/source} && exec ${DOCKER_COMMAND:-bash}'
110
111
services:
0 commit comments