add bzip2
This commit is contained in:
parent
09be2264f0
commit
2deb8731a4
2 changed files with 7 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
|
bzip2 \
|
||||||
|
pbzip2 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/openmaptiles/openmaptiles.git /opt/openmaptiles
|
RUN git clone --depth=1 https://github.com/openmaptiles/openmaptiles.git /opt/openmaptiles
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,11 @@ PHOTON_URL="https://download1.graphhopper.com/public/europe/${COUNTRY}/photon-db
|
||||||
|
|
||||||
echo "=== Downloading Photon index: $PHOTON_URL ==="
|
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 "Photon index extracted to $PHOTON_DATA"
|
||||||
echo "Add a volume mount to the photon service: ../data/photon:/photon/photon_data"
|
echo "Add a volume mount to the photon service: ../data/photon:/photon/photon_data"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue