Skip to content

Commit 7cfd15a

Browse files
authored
fix(download): updates/fixes for data download script (#135)
1 parent 583e5f7 commit 7cfd15a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
FROM pelias/baseimage
22

3+
# install commands used by bin/download script
4+
RUN apt-get update && \
5+
apt-get install -y jq lbzip2 pigz zstd && \
6+
rm -rf /var/lib/apt/lists/*
7+
38
# working directory
49
WORKDIR /code
510

bin/download

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -euo pipefail
66
CONFIG_JSON=$(node -e "console.log(JSON.stringify(require('pelias-config').generate()));")
77

88
# Extract spatial configuration
9-
SPATIAL_CONFIG=$(echo "$CONFIG_JSON" | jq '.imports.spatial // {}')
9+
SPATIAL_CONFIG=$(echo "$CONFIG_JSON" | jq '.services.spatial // {}')
1010
if [ "$SPATIAL_CONFIG" = "{}" ] || [ "$SPATIAL_CONFIG" = "null" ]; then
1111
echo "no spatial configuration defined, skipping"
1212
exit 0

0 commit comments

Comments
 (0)