From e2a8a00b1d366a24bfeea9e678855660bfa6efc0 Mon Sep 17 00:00:00 2001 From: Shautvast Date: Mon, 30 Mar 2026 10:37:32 +0200 Subject: [PATCH] persistence for tiles --- backend/importer.Dockerfile | 2 ++ backend/scripts/02_import_tiles.sh | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/importer.Dockerfile b/backend/importer.Dockerfile index db089fa..4411544 100644 --- a/backend/importer.Dockerfile +++ b/backend/importer.Dockerfile @@ -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 diff --git a/backend/scripts/02_import_tiles.sh b/backend/scripts/02_import_tiles.sh index f36dad3..d04bfcd 100755 --- a/backend/scripts/02_import_tiles.sh +++ b/backend/scripts/02_import_tiles.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