a59da9921e
- Strip pipelock from all unit and integration test fixtures: proxy_plan fields removed from DockerBottlePlan/SmolmachinesBottlePlan constructors; pipelock-specific test classes deleted or renamed - Update test_sidecar_init: remove test_pipelock_loses_egress_tokens, rename "pipelock" daemon fixtures to "git-gate" throughout - Remove test_pipelock_binary_present_and_versioned from integration test - Remove test_pipelock_answers_on_bundle_ip from smolmachines launch test - Update _SANDBOX_BLOCK_MARKERS: remove "pipelock" marker (egress blocks) - Dockerfile.sidecars: remove pipelock build stage and COPY; update layout comments and port table - egress_entrypoint.sh: update comments now that egress is sole proxy - Clean up pipelock references in comments/docstrings across backend, network, manifest, supervise, git_gate, yaml_subset, agent_provider, sidecar_bundle, sidecar_init, egress_addon_core modules Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
"""Sidecar bundle constants + helpers for the Docker backend
|
|
(PRD 0024).
|
|
|
|
The bundle image (built by Dockerfile.sidecars, PRD 0024 chunk 1)
|
|
runs egress + git-gate + supervise as one container per bottle
|
|
under a small Python init supervisor. As of chunk 5 the bundle
|
|
is the only shape — the legacy four-sidecar topology and its
|
|
`BOT_BOTTLE_SIDECAR_BUNDLE` feature flag are gone."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
|
|
# Bundle image. Defaults to a built-locally tag (built from the
|
|
# repo's Dockerfile.sidecars via compose `build:`). Operators
|
|
# pinning to a published digest can override via env, matching
|
|
# the existing `BOT_BOTTLE_PIPELOCK_IMAGE` shape.
|
|
SIDECAR_BUNDLE_IMAGE = os.environ.get(
|
|
"BOT_BOTTLE_SIDECAR_IMAGE",
|
|
"bot-bottle-sidecars:latest",
|
|
)
|
|
|
|
SIDECAR_BUNDLE_DOCKERFILE = "Dockerfile.sidecars"
|
|
|
|
|
|
def sidecar_bundle_container_name(slug: str) -> str:
|
|
"""`bot-bottle-sidecars-<slug>`. Same prefix scheme as the
|
|
per-sidecar containers it replaces, so the dashboard's
|
|
discovery-by-prefix logic keeps working."""
|
|
return f"bot-bottle-sidecars-{slug}"
|