Skip to content

Commit

Permalink
wget -> curl
Browse files Browse the repository at this point in the history
  • Loading branch information
cryi committed Oct 27, 2024
1 parent 615bd54 commit 9349245
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions containers/tzc-tezos/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ ENV HOME=/tezbox/context/data

RUN printf '#!/bin/sh\n\
if [ -z "$GITHUB_TOKEN" ]; then\n\
wget "$@" \n\
curl -L "$@" -o /tmp/downloaded_file \n\
else\n\
wget --header "Authorization: token $GITHUB_TOKEN" "$@" \n\
fi\n' > /usr/local/bin/auth_wget && chmod +x /usr/local/bin/auth_wget
curl -H "Authorization: token $GITHUB_TOKEN" -L "$@" -o /tmp/downloaded_file \n\
fi\n' > /usr/local/bin/auth_curl && chmod +x /usr/local/bin/auth_curl

# Use auth_wget for downloading files with optional authentication
RUN auth_wget https://raw.githubusercontent.com/alis-is/ascend/main/tools/setup/standalone-linux.sh -O /tmp/setup-ascend.sh && sh /tmp/setup-ascend.sh --prerelease
# Use auth_curl for downloading files with optional authentication
RUN auth_curl https://raw.githubusercontent.com/alis-is/ascend/main/tools/setup/standalone-linux.sh && sh /tmp/downloaded_file --prerelease

RUN mkdir -p /tezbox /tezbox/configuration /tezbox/overrides /tezbox/overrides/context
COPY configuration /tezbox/configuration
Expand Down

0 comments on commit 9349245

Please sign in to comment.