From a7f9f66da1ed585e963bbc5eebe5731ed4e04531 Mon Sep 17 00:00:00 2001 From: serversdown Date: Fri, 20 Nov 2026 13:39:23 -0500 Subject: [PATCH] build: bridges/ leaves the production image The bench and lab tools (MITM proxy, the old ACH servers, probes, link simulator) were copied into the SFM image and installed as a package, though SFM imports nothing from them (ADR 0003: lab tools leave the image). Dockerfile and the package list now carry minimateplus, micromate, sfm and scripts only; the backfills still run in the container. Checked: the image builds, sfm.server and the backfill / import scripts import inside it. Tests that use bridges/ run from a checkout, unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9 --- Dockerfile | 4 +++- pyproject.toml | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index af55af5..4c31fff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,11 +17,13 @@ RUN apt-get update && \ # docker-compose; storage in the DB is always UTC regardless. ENV TZ=America/New_York +# The product and its maintenance scripts (the backfills run in this +# container). The bench and lab tools -- bridges/, scratch/, seismo_lab.py -- +# stay out of the image (ADR 0003; SFM imports nothing from them). COPY pyproject.toml requirements.txt ./ COPY minimateplus ./minimateplus COPY micromate ./micromate COPY sfm ./sfm -COPY bridges ./bridges COPY scripts ./scripts RUN pip install --no-cache-dir -e . diff --git a/pyproject.toml b/pyproject.toml index 08ca4fc..d5264b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ dependencies = [ test = ["pytest>=7", "httpx>=0.24"] [tool.setuptools.packages.find] -# Auto-discovers minimateplus/, micromate/, sfm/, bridges/ as packages +# The product's packages. bridges/ (bench tools) is not one of them: it runs +# from a checkout and stays out of the image (ADR 0003). where = ["."] -include = ["minimateplus*", "micromate*", "sfm*", "bridges*"] +include = ["minimateplus*", "micromate*", "sfm*"]