# Gateway data-plane image (PRD 0024 bundle shape; PRD 0070 gateway). # # The egress / git-gate / supervise *data plane* — one image, run by # the consolidated per-host gateway (PRD 0070). It is NOT the # orchestrator control plane: that is the separate, lean # `bot-bottle-orchestrator` image (Dockerfile.orchestrator, #384), which # ships only python + the stdlib-only `bot_bottle` package and none of # this image's mitmproxy / git / gitleaks payload. # # Collapses the prior per-daemon images (egress, git-gate, # supervise) into one. A small stdlib-Python init supervisor at # /app/gateway_init.py spawns all daemons, forwards SIGTERM, and # propagates per-daemon stdout/stderr to the container log with a # `[name]` prefix. See PRD 0024 for the rationale. # # Layout: # # /usr/bin/gitleaks gitleaks binary # /app/egress_addon.py + siblings mitmproxy addon (egress) # /app/egress-entrypoint.sh mitmdump launcher # /app/supervise_server.py + .py supervise MCP server # /app/gateway_init.py PID 1 supervisor # /etc/egress/routes.yaml bind-mounted at run time # /etc/git-gate/pre-receive docker-cp'd at start time # /git-gate-entrypoint.sh docker-cp'd at start time # /git-gate/creds/* docker-cp'd at start time # /git/* bare repos, populated at runtime # /run/supervise/bot-bottle.db bind-mounted at run time # /home/mitmproxy/.mitmproxy/ mitmproxy CA dir # # Exposed ports inside the container: # 9099 egress (mitmproxy, agent-facing HTTPS proxy) # 9418 git-gate (git-daemon) # 9420 git-gate smart HTTP (VM-backend agent-facing transport) # 9100 supervise (MCP HTTP) # Based on `python:3.12-slim` (Debian trixie) rather than the # `mitmproxy/mitmproxy` image (Debian bookworm) so the whole stack — # gateway here, and the firecracker infra image that builds FROM this — # lands on trixie, whose buildah (1.39) can build agent Dockerfiles that # use heredocs. mitmproxy is pip-installed to the same effect as the # upstream image. (bookworm's buildah is 1.28, which can't parse # `RUN ... <