Skip to content

Fix build tools image so make test in ztunnel can work without root #3207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions docker/build-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -751,25 +751,24 @@ RUN mkdir -p /go && \
mkdir -p /home/.cargo/registry && \
mkdir -p /home/.cargo/git && \
mkdir -p /home/.helm && \
mkdir -p /home/.gsutil
mkdir -p /home/.gsutil && \
mkdir -p /var/run/netns

# TODO must sort out how to use uid mapping in docker so these don't need to be 777
# They are created as root 755. As a result they are not writeable, which fails in
# the developer environment as a volume or bind mount inherits the permissions of
# the directory mounted rather then overriding with the permission of the volume file.
RUN chmod 777 /go && \
chmod 777 /gocache && \
chmod 777 /gobin && \
chmod 777 /config && \
chmod 777 /config/.docker && \
chmod 777 /config/.config/gcloud && \
chmod 777 /config/.kube && \
chmod 777 /home/.cache && \
chmod 777 /home/.cargo && \
chmod 777 /home/.cargo/registry && \
chmod 777 /home/.cargo/git && \
chmod 777 /home/.helm && \
chmod 777 /home/.gsutil
RUN chmod -R 777 /go && \
chmod -R 777 /gocache && \
chmod -R 777 /gobin && \
chmod -R 777 /config && \
chmod -R 777 /config/.docker && \
chmod -R 777 /config/.config/gcloud && \
chmod -R 777 /config/.kube && \
chmod -R 777 /home/.cache && \
chmod -R 777 /home/.cargo && \
chmod -R 777 /home/.helm && \
chmod -R 777 /home/.gsutil

WORKDIR /

Expand Down