add bzip2

This commit is contained in:
Shautvast 2026-03-30 11:55:40 +02:00
parent 09be2264f0
commit 2deb8731a4
2 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
redis-tools \
bzip2 \
pbzip2 \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth=1 https://github.com/openmaptiles/openmaptiles.git /opt/openmaptiles

View file

@ -16,7 +16,11 @@ PHOTON_URL="https://download1.graphhopper.com/public/europe/${COUNTRY}/photon-db
echo "=== Downloading Photon index: $PHOTON_URL ==="
wget -O - "$PHOTON_URL" | bzip2 -cd | tar x -C "$PHOTON_DATA"
wget -O "${PHOTON_DATA}/photon-db.tar.bz2" "$PHOTON_URL"
echo "=== Extracting Photon index ==="
pbzip2 -cd "${PHOTON_DATA}/photon-db.tar.bz2" | tar x -C "$PHOTON_DATA"
rm "${PHOTON_DATA}/photon-db.tar.bz2"
echo "Photon index extracted to $PHOTON_DATA"
echo "Add a volume mount to the photon service: ../data/photon:/photon/photon_data"