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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-20 13:39:23 -05:00
1 parent 638ac58b4d
commit a7f9f66da1
2 files changed
+6 -3

No files matched your search

+3 -1
View File
@@ -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 .
+3 -2
View File
@@ -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*"]