09393b354b
Completes the de-sidecar cleanup: no live code, test, current doc, script, or nix file mentions or is named "sidecar" any more. Only the dated PRD/research docs keep the term as historical record (agreed on the #385 thread). - Rename `sidecar_init.py`→`gateway_init.py` was done earlier; this pass sweeps the remaining descriptive uses: the egress / git-gate / supervise components are the gateway's *daemons*, the shared container is the *gateway*, the old per-bottle container was the *companion container*. - Rename `tests/integration/test_sidecar_bundle_image.py`→`test_gateway_image.py` and its class; update `docs/ci.md` + `tests/README.md` for the renamed/ removed integration tests. - `SIDECAR_PORTS` shell var in `scripts/firecracker-netpool.sh`→`GATEWAY_PORTS`. Full unit suite green (bar the pre-existing `/bin/sleep`-missing env errors in test_gateway_init); docker integration — gateway singleton, broker, real two-bottle multitenant isolation, and the gateway-image build — all pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBMWTEtQdJ4W5UrWuLHCck
40 lines
1.5 KiB
Python
40 lines
1.5 KiB
Python
"""Launch flow for the macOS Apple Container backend — disabled (#385).
|
|
|
|
This backend launched a per-bottle companion container (the egress /
|
|
git-gate / supervise data plane) alongside the agent container, with the
|
|
agent's proxy env pointed at the companion's host-only IP. That
|
|
per-bottle-companion architecture was removed in the companion-container removal;
|
|
the macOS backend will be re-enabled once it grows the consolidated
|
|
per-host gateway the docker backend already uses.
|
|
|
|
Until then, launching a macOS bottle fails closed. `prepare` / `status`
|
|
/ cleanup still work.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from contextlib import contextmanager
|
|
from typing import Callable, Generator
|
|
|
|
from ...log import die
|
|
from .bottle import MacosContainerBottle
|
|
from .bottle_plan import MacosContainerBottlePlan
|
|
|
|
|
|
@contextmanager
|
|
def launch(
|
|
plan: MacosContainerBottlePlan,
|
|
*,
|
|
provision: Callable[[MacosContainerBottlePlan, "MacosContainerBottle"], str | None],
|
|
) -> Generator[MacosContainerBottle, None, None]:
|
|
"""Fail closed: the macOS backend is disabled until it grows the
|
|
consolidated per-host gateway (the companion-container path it used
|
|
was removed in #385)."""
|
|
del plan, provision
|
|
die(
|
|
"the macos-container backend is temporarily disabled during the "
|
|
"companion-container removal (#385); it will return once it uses "
|
|
"the consolidated gateway. Use --backend=docker for now."
|
|
)
|
|
yield # unreachable — `die` raises; keeps this a generator/contextmanager
|