From f733038885954908da9457b5dc227640e69aed35 Mon Sep 17 00:00:00 2001 From: Ralph Date: Wed, 3 Jan 2024 09:57:55 -0500 Subject: [PATCH 1/2] Update entrypoint.sh --- scripts/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 87b88ff..9b480c3 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -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 From 42259967bc2fb0c6a7d22cb2253705a6eb940624 Mon Sep 17 00:00:00 2001 From: Ralph Date: Wed, 3 Jan 2024 09:58:44 -0500 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c8fd8ac..182d520 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/*