Sign inSign up

youcantbeserious/osm-build-pipeline

By youcantbeserious

•Updated over 1 year ago

Image
0

348

youcantbeserious/osm-build-pipeline repository overview

⁠OSM Build Pipeline

A minimal, two-stage Docker pipeline for:

  1. Downloading .osm.pbf files from Geofabrik using Alpine
  2. Generating .mbtiles tiles using Planetiler⁠

⁠✅ Features

  • Only re-downloads if .osm.pbf file is older than a configurable threshold
  • Multi-stage Dockerfile keeps final image clean
  • Easy to deploy on Unraid, CI, or manually

⁠🧪 Usage

⁠Run locally
docker build -t youcantbeserious/osm-build-pipeline .
docker run --rm -v $(pwd)/data:/data youcantbeserious/osm-build-pipeline

⁠⚙️ Environment Variables

VariableDescriptionDefault
OSM_FILERegion name for Geofabrik (e.g. europe-latest)europe-latest
OSM_URLFull override for download URLbuilt from OSM_FILE
OSM_FILENAMEOverride .pbf file name${OSM_FILE}.osm.pbf
MBTILES_FILENAMEOutput tiles filename${OSM_FILE}.mbtiles
PBF_EXPIRY_DAYSDays before .pbf is considered stale90

MIT Licensed. Fork and use freely.

Tag summary

Content type

Image

Digest

sha256:5a851c16c…

Size

224.9 MB

Last updated

over 1 year ago

docker pull youcantbeserious/osm-build-pipeline