Skip to content

abc_runner.container

WARNING

This documentation is almost entirely "vibe coded"; while a helpful resource for humans and agents to understand this codebase, it should not be considered a source of ground truth in the way documentation normally is, and the user is responsible for verifying that all instructions given here are safe.

abc_runner.container

Container management for ABC Runner.

Thin adapter over :class:automaton.ContainerManager. ABC Runner owns the on-disk layout of container templates. The base and harness layers live in the package/data root (containers/base.Dockerfile.jinja2 and containers/harnesses/). The runtime ("third") layer is a task group, and its container template lives inside the resolved task-group directory (<group_dir>/Dockerfile.jinja2 by default), so a group is a fully self-contained, relocatable unit.

ContainerManager

ContainerManager(package_root: Path, resolver: GroupResolver)

Bases: ContainerManager

ABC Runner container manager.

Wraps :class:automaton.ContainerManager with the ABC Runner layout: base and harness layers from package_root; runtime (task-group) layer from the resolved group directory.

Parameters:

Name Type Description Default
package_root Path

Root containing containers/ and harnesses/.

required
resolver GroupResolver

Resolver used to locate task-group directories.

required
Source code in abc_runner/container.py
def __init__(self, package_root: Path, resolver: GroupResolver):
    self.package_root = Path(package_root).resolve()
    self.resolver = resolver
    container_base = os.environ.get("ABC_RUNNER_CONTAINER_BASE")
    cache_root = (
        Path(container_base).expanduser().resolve()
        if container_base
        else Path("/var/tmp") / f"{ABC_RUNNER_IMAGE_PREFIX}-{os.getuid()}"
    )
    super().__init__(
        _abc_runner_layout(self.package_root, resolver),
        cache_root=cache_root,
        image_prefix=ABC_RUNNER_IMAGE_PREFIX,
    )