PRD 0003: Bottle Backend abstraction #5

Merged
didericis merged 44 commits from add-bottle-factory-abstraction into main 2026-05-11 14:49:43 -04:00
2 changed files with 13 additions and 11 deletions
Showing only changes of commit e20f8af05a - Show all commits
@@ -27,18 +27,18 @@ from dataclasses import dataclass
from pathlib import Path from pathlib import Path
from typing import Iterator from typing import Iterator
from .. import docker as docker_mod from ... import network as network_mod
from .. import network as network_mod from ... import pipelock
from .. import pipelock from ... import skills as skills_mod
from .. import skills as skills_mod from ... import ssh as ssh_mod
from .. import ssh as ssh_mod from ...env_resolve import env_resolve
from ..env_resolve import env_resolve from ...log import die, info
from ..log import die, info from .. import BottleCleanupPlan, BottlePlan, BottlePlatform, BottleSpec
from . import BottleCleanupPlan, BottlePlan, BottlePlatform, BottleSpec from . import util as docker_mod
# Where the repo root lives, for `docker build` context. Computed once. # Where the repo root lives, for `docker build` context. Computed once.
_REPO_DIR = str(Path(__file__).resolve().parent.parent.parent) _REPO_DIR = str(Path(__file__).resolve().parent.parent.parent.parent)
# --- Runtime detection ----------------------------------------------------- # --- Runtime detection -----------------------------------------------------
@@ -1,4 +1,6 @@
"""Docker helpers. Build/inspect primitives shared by the CLI.""" """Docker host-side primitives used by DockerBottlePlatform: probing
for docker on PATH, slugifying agent names, checking image/container
existence, and building images."""
from __future__ import annotations from __future__ import annotations
@@ -7,7 +9,7 @@ import shutil
import subprocess import subprocess
from typing import Iterable from typing import Iterable
from .log import die, info from ...log import die, info
def require_docker() -> None: def require_docker() -> None: