Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down