Skip to content

Commit

Permalink
use wget instead of curl to help with R2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Feb 14, 2023
1 parent 8d43ace commit 8eea358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polkadot-archive-downloader/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM alpine
RUN apk add --no-cache curl lz4 bash
RUN apk add --no-cache lz4 bash
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD []
2 changes: 1 addition & 1 deletion polkadot-archive-downloader/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else
rm -rf /polkadot/.local/share/polkadot/chains/${chain_dir}-tmp/ || true
mkdir -p /polkadot/.local/share/polkadot/chains/${chain_dir}-tmp/
echo "Will download $ARCHIVE_URL"
curl --http1.1 -o - -L $ARCHIVE_URL | lz4 -c -d - | tar -x -C /polkadot/.local/share/polkadot/chains/${chain_dir}-tmp
wget -O - $ARCHIVE_URL | lz4 -c -d - | tar -x -C /polkadot/.local/share/polkadot/chains/${chain_dir}-tmp
echo "Download successful, moving to final location"
mv -v /polkadot/.local/share/polkadot/chains/${chain_dir}-tmp/ /polkadot/.local/share/polkadot/chains/${chain_dir}/
chmod -R 777 /polkadot/.local/
Expand Down

0 comments on commit 8eea358

Please sign in to comment.