Skip to content

Commit

Permalink
fix: tar grpcurl permissions
Browse files Browse the repository at this point in the history
nicolaka#158

grpcurl tar includes some wild UID/GID numbers that can't map to subuid/subgid.
```
2024-04-04 09:48:12 (10.9 MB/s) - '/tmp/grpcurl.tar.gz' saved [7706522/7706522]

tar: LICENSE: Cannot change ownership to uid 708061865, gid 708061865: Invalid argument
tar: grpcurl: Cannot change ownership to uid 708061865, gid 708061865: Invalid argument
tar: Exiting with failure status due to previous errors
chown: cannot access '/tmp/grpcurl': No such file or directory
Error: building at STEP "RUN /tmp/fetch_binaries.sh": while running runtime: exit status 1
```
  • Loading branch information
dezza committed Apr 4, 2024
1 parent 4dfb45a commit 2b14cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/fetch_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ get_grpcurl() {
VERSION=$(get_latest_release fullstorydev/grpcurl | sed -e 's/^v//')
LINK="https://github.com/fullstorydev/grpcurl/releases/download/v${VERSION}/grpcurl_${VERSION}_linux_${TERM_ARCH}.tar.gz"
wget "$LINK" -O /tmp/grpcurl.tar.gz && \
tar -zxvf /tmp/grpcurl.tar.gz && \
tar --no-same-owner -zxvf /tmp/grpcurl.tar.gz && \
mv "grpcurl" /tmp/grpcurl && \
chmod +x /tmp/grpcurl
chown root:root /tmp/grpcurl
Expand Down

0 comments on commit 2b14cfb

Please sign in to comment.