fix(build): key nested images by base content
refresh-image-locks / refresh (push) Successful in 36s
lint / lint (push) Successful in 1m2s
test / image-input-builds (push) Successful in 1m6s
test / integration-docker (push) Successful in 1m12s
Update Quality Badges / update-badges (push) Successful in 56s
test / unit (push) Successful in 2m19s
test / coverage (push) Successful in 15s

This commit was merged in pull request #508.
This commit is contained in:
2026-07-26 20:52:31 +00:00
committed by didericis
parent 73c566f3ff
commit 902286dbc0
5 changed files with 104 additions and 28 deletions
@@ -55,9 +55,8 @@ _GUEST_DEVICES = ("/dev/fuse", "/dev/net/tun")
def build_image(
base_image: str,
pinned_base: str,
build: Callable[..., None],
pin_local_base: Callable[[str], str],
) -> str:
"""Layer the nested-container tooling onto an already-built agent image.
@@ -67,8 +66,7 @@ def build_image(
# TODO(#394): replace this hand-rolled Dockerfile with a docker-layer
# abstraction once that infrastructure exists.
"""
image = f"{base_image}{IMAGE_SUFFIX}"
pinned_base = pin_local_base(base_image)
image = f"{pinned_base}{IMAGE_SUFFIX}"
init_script = Path(__file__).with_name("nested-containers-init.sh")
with tempfile.TemporaryDirectory(prefix="bot-bottle-nested-containers.") as tmp:
context = Path(tmp)