Companion repo for the FOSS4G Europe 2026 talk "From Cron Job to Self-Healing Pipeline." Slides (live) · Deck repo
A clone-and-run reference that walks a maturity ladder for Earth-observation data ingestion: from a fragile cron job to a self-correcting pipeline, one independently runnable stage at a time. The unit-of-work ingest function never changes across rungs; only the orchestration around it grows.
Folder number == rung number. Each rung is independently runnable and adds one idea.
| Rung | Stage | What it is |
|---|---|---|
| 0 | 00-cron |
a laptop crontab → docker run |
| 1 | 01-argo-retries |
the same image under Argo + a STAC logbook |
| 2 | 02-fanout |
capped parallel backfill (withItems) |
| 3 | 03-stac-logbook |
the logbook drives repair (find_gaps) |
| 4 | 04-observability |
a daily report (Argo API + gap heatmap) |
Two levels of self-correction emerge from the design: an item that fails is retried (rung 1), and a day that's missing is detected and refilled (rung 3).
Rungs 0–4 run end-to-end on a local kind cluster. The talk and slide deck are linked at the top
of this README.
Two ways to get an environment that can run the ladder:
A. Dev container / Codespace (zero host setup). "Reopen in Container" (VS Code) or a GitHub
Codespace ships uv, kind, kubectl, argo, and Docker-in-Docker pinned to the versions the
cluster runs, letting you skip everything below. See
Dev container / Codespaces for sizing and caveats.
B. Host install. Put these on your PATH. Rung 0 needs only Docker + uv; the cluster rungs
(1–4) need all of them:
| Tool | Why | Version | Install |
|---|---|---|---|
| Docker (running) | container runtime (kind runs the cluster inside it) |
recent | https://docs.docker.com/get-docker/ |
| uv | Python deps + the demo scripts | latest | curl -LsSf https://astral.sh/uv/install.sh | sh |
| kind | the local Kubernetes cluster | v0.32 | brew install kind · https://kind.sigs.k8s.io/ |
| kubectl | talk to the cluster | v1.34 | brew install kubectl · https://kubernetes.io/docs/tasks/tools/ |
| argo | submit + watch workflows | v3.7 | brew install argo · releases |
jq (optional) |
nicer curl … | jq verify output |
any | brew install jq |
Tip: run
make checkfirst. It confirms Docker is running andkind/kubectl/argo/uvare installed (with an install hint for anything missing), somake upcan't fail halfway in. On Windows, run everything inside WSL2; see Windows / WSL2. The cluster rungs aren't free-tier-sized; see the honest sizing table below.
Quickstart: the central demo (rung 1). First bring the cluster up:
make check # confirm Docker (running) + kind/kubectl/argo/uv are installed
make up # cluster: RustFS + pgSTAC + STAC API + stac-browser + Argo (returns when ready)The object store is RustFS, an Apache-2.0 S3-compatible server; MinIO's community images are no longer published on Docker Hub. Its in-cluster names (minio, minio-credentials) are unchanged. If you built eo-ingest:dev before this change, run make rebuild once.
Then open the Argo UI first, so you watch the pipeline execute, and submit the rung from a
second terminal. make ui and make browse each stay running (they hold a port-forward):
make ui # terminal 1: opens the Argo UI (plain HTTP, no login); leave it running
make demo STAGE=01 # terminal 2: submit rung 1; watch ingest(0)✖ → ingest(1)✔ live in the UI
make browse # then: open stac-browser, the item is now in the logbookWhen you're done, make clean resets the demo state but keeps the cluster; make down deletes it.
Rung 0 (no Kubernetes) needs none of the above; it's just ./stages/00-cron/run.sh.
Walk the full ladder (rungs 0 → 4). For a guided, step-by-step tour (what you'll see, how
to verify it, and the lesson at each rung: retries → fan-out → self-healing logbook →
observability), follow docs/walkthrough.md. Each rung also has its
own README under stages/.
The .devcontainer is set up to ship everything the ladder needs (uv,
kind, kubectl, argo, and Docker-in-Docker) pinned to the versions the cluster runs, so
"Reopen in Container" (VS Code) or a GitHub Codespace is intended to give you a
maintainer-equivalent environment.
Note
Verified on a host install and the local dev container (VS Code "Reopen in Container"). Codespaces should behave the same (same image, same pins) but isn't tested yet; fall back to the host install or the local dev container if it misbehaves.
Honest sizing (the cluster rungs are not free-tier-sized):
| Environment | What runs |
|---|---|
| Free Codespace / 2-core, 4 GB | Rung 0 only (./stages/00-cron/run.sh, plain docker run, no Kubernetes) |
| 4-core, 8 GB+ | The full ladder (make up → rungs 1–4): kind + RustFS + pgSTAC + STAC API + Argo |
Rung 0 exists precisely so the entry point works on the smallest tier; the cluster appears at rung 1, where you need the bigger machine.
A fresh clone must reach a working rung 1, with pgSTAC on the path, within < 15 min cold /
< 5 min warm. Enforced by tests/integration/test_smoke_stage01.py
(make down → up → demo STAGE=01, timed; opt-in via RUN_CLUSTER_SMOKE=1 as it recreates the
cluster).
| Measured | make up |
make demo STAGE=01 |
total |
|---|---|---|---|
| 2026-06-10 | 113 s | 41 s | 153 s |
Caveat, be honest about "cold": this is a cold cluster (fresh kind) but a warm image
cache (the RustFS / pgSTAC / stac-api / Argo images were already pulled). A truly pristine machine
also pays the one-time image pulls. Specs: Apple M5, 10-core (4P+6E), 32 GB. These are laptop
numbers, not a CI SLA; the CI-runner budget is measured separately in the kind-smoke job.
The demo runs on plain digest-pinned manifests, single-replica, targeting a 4-core / 16 GB "average laptop" (rung 0 runs on a 2-core free tier Codespace).
A production-grade extension would add: eoAPI (eoapi-k8s Helm) replacing the bare STAC API,
titiler-pgstac for coverage tiles, and Grafana (AGPLv3) for an error-rate dashboard. That
extension is not part of this demo.
| Symptom | Likely cause / fix |
|---|---|
make demo runs the old code |
the in-cluster image is stale; make rebuild (force build + kind load) |
NoSuchBucket / wrong endpoint from a host script |
an ambient S3_BUCKET / S3_ENDPOINT_URL in your shell leaked in. The make targets pin their own env; if running a script directly, unset those or set them explicitly |
| stac-browser shows items but blank previews | thumbnail hrefs are s3://…, which a browser can't fetch (tracked follow-up); the item metadata is correct |
make up slow on first run |
one-time image pulls; subsequent runs are warm |
| pgSTAC pod slow to become Ready | first boot runs the pgSTAC migration (the startup probe allows ~5 min) |
make demo STAGE=NN says "no stage matching" |
that rung isn't built yet, or you mistyped the number (folder NN-name) |
Guidance, not a maintainer-tested path. kind needs a Linux Docker daemon, so on Windows run
everything inside WSL2 (Ubuntu) with Docker Desktop's WSL2 backend. Clone the repo inside the
WSL2 filesystem (~/…, not /mnt/c/…) for sane file performance, then follow the host install
above. This route hasn't been tested by the maintainer; if you hit snags, please
open an issue; reports from
Windows/QGIS users are especially welcome.
For contributors. These commands set up the Python package for development; they are not
how you run the demo (for that, see Prerequisites and
Run the ladder). No cluster is needed; .env / .env.example only matter when
running the ingester standalone on the host (the make demo targets pin their own env).
uv sync # install deps into .venv
uv run ruff check . # lint
uv run pytest tests/unit # fast offline testsSee CONTRIBUTING.md. Questions go in
Discussions.
Code is Apache-2.0; see LICENSE. The synthetic imagery is generated (not real
observations), licensed CC-BY-4.0.
This repo was built with AI assistance (Claude Code); every change is reviewed by the maintainer.