From f4fa4822b2d62a32a1d575eeb5b0f1cd4d29ffd3 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 15 Oct 2025 12:53:31 +0200 Subject: [PATCH] fix(download): updates/fixes for data download script --- Dockerfile | 5 +++++ bin/download | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d7fae3a..f5ee33e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ FROM pelias/baseimage +# install commands used by bin/download script +RUN apt-get update && \ + apt-get install -y jq lbzip2 pigz zstd && \ + rm -rf /var/lib/apt/lists/* + # working directory WORKDIR /code diff --git a/bin/download b/bin/download index fda538a..dc34523 100755 --- a/bin/download +++ b/bin/download @@ -6,7 +6,7 @@ set -euo pipefail CONFIG_JSON=$(node -e "console.log(JSON.stringify(require('pelias-config').generate()));") # Extract spatial configuration -SPATIAL_CONFIG=$(echo "$CONFIG_JSON" | jq '.imports.spatial // {}') +SPATIAL_CONFIG=$(echo "$CONFIG_JSON" | jq '.services.spatial // {}') if [ "$SPATIAL_CONFIG" = "{}" ] || [ "$SPATIAL_CONFIG" = "null" ]; then echo "no spatial configuration defined, skipping" exit 0