Skip to content

Commit

Permalink
Merge pull request #1 from LBRYFoundation/Update-Snapshot-to-zstd
Browse files Browse the repository at this point in the history
Update snapshot to zstd
  • Loading branch information
Coolguy3289 authored Jan 3, 2024
2 parents e537ad7 + 4225996 commit 0cbd81c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ RUN apt-get update && \
python3.9 \
python3.9-dev \
python3-cffi \
python3-pip && \
python3-pip
zstd && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 && \
rm -rf /var/lib/apt/lists/*

Expand Down
3 changes: 2 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ SNAPSHOT_URL="${SNAPSHOT_URL:-}" #off by default. latest snapshot at https://lbr
if [[ "$HUB_COMMAND" == "scribe" ]] && [[ -n "$SNAPSHOT_URL" ]] && [[ ! -d /database/lbry-rocksdb ]]; then
files="$(ls)"
echo "Downloading and extracting hub snapshot from $SNAPSHOT_URL"
wget --no-verbose -c "$SNAPSHOT_URL" -O - | tar --use-compress-program=unzstd x -C /database
#wget --no-verbose -c "$SNAPSHOT_URL" -O - | tar x -C /database
curl "$SNAPSHOT_URL" | zstd -d | tar xf - -C /database
fi

if [ -z "$HUB_COMMAND" ]; then
Expand Down

0 comments on commit 0cbd81c

Please sign in to comment.