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