persistence for tiles
This commit is contained in:
parent
fc8424bf8b
commit
e2a8a00b1d
2 changed files with 2 additions and 5 deletions
|
|
@ -11,6 +11,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
redis-tools \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN git clone --depth=1 https://github.com/openmaptiles/openmaptiles.git /opt/openmaptiles
|
||||
|
||||
WORKDIR /app
|
||||
COPY scripts/ /app/scripts/
|
||||
RUN chmod +x /app/scripts/*.sh
|
||||
|
|
|
|||
|
|
@ -4,11 +4,6 @@
|
|||
PBF_FILE="/data/osm/region.osm.pbf"
|
||||
PG_CONN="postgresql://maps:maps@postgres:5432/maps"
|
||||
|
||||
# Clone openmaptiles toolchain (once)
|
||||
if [ ! -d "/opt/openmaptiles" ]; then
|
||||
git clone https://github.com/openmaptiles/openmaptiles.git /opt/openmaptiles
|
||||
fi
|
||||
|
||||
# Import OSM data into PostGIS using openmaptiles schema
|
||||
# This creates the tables that Martin reads for tile generation
|
||||
cd /opt/openmaptiles
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue