Skip to content

Commit

Permalink
axel used for downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
gluk64 committed May 15, 2019
1 parent c342480 commit 4aa8a71
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/.load_keys
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

echo "Checking keys in $KEY_DIR/"
mkdir -p $KEY_DIR
cd $KEY_DIR

for i in $KEY_FILES; do
if ! [ -f $KEY_DIR/$i ]; then
echo "Downloading $SPACE_URL/$i to $KEY_DIR/"
curl -o $KEY_DIR/$i $SPACE_URL/$i 2>&1
echo "Downloading file $SPACE_URL/$i"
axel -a $SPACE_URL/$i 2>&1
#curl -o $KEY_DIR/$i $SPACE_URL/$i 2>&1
fi
done
1 change: 1 addition & 0 deletions docker/prover/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ RUN apk add --no-cache curl
COPY target/x86_64-unknown-linux-musl/release/prover /
COPY docker/prover/prover-entry.sh /bin/
COPY bin/.load_keys /bin/
RUN apk add --no-cache axel

CMD ["prover-entry.sh"]
6 changes: 6 additions & 0 deletions docs/setup-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Install Node.

Install yarn.

## Axel

Install axel for downloading keys:

```brew install axel```

## Rust

Install the latest rust version (>= 1.32):
Expand Down

0 comments on commit 4aa8a71

Please sign in to comment.