From 8eea3582f133952a41e1d57c27e07fb9c5818a6c Mon Sep 17 00:00:00 2001 From: Nicolas Ochem Date: Mon, 13 Feb 2023 17:10:18 -0800 Subject: [PATCH] use wget instead of curl to help with R2 --- polkadot-archive-downloader/Dockerfile | 2 +- polkadot-archive-downloader/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot-archive-downloader/Dockerfile b/polkadot-archive-downloader/Dockerfile index 3c8ea15..0752009 100644 --- a/polkadot-archive-downloader/Dockerfile +++ b/polkadot-archive-downloader/Dockerfile @@ -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 [] diff --git a/polkadot-archive-downloader/entrypoint.sh b/polkadot-archive-downloader/entrypoint.sh index 24fe479..59072db 100755 --- a/polkadot-archive-downloader/entrypoint.sh +++ b/polkadot-archive-downloader/entrypoint.sh @@ -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/