Files
computer-playbook/compose/worktree.override.yml
kevinveenbirkenbachandClaude Opus 5 8aba198aec feat(worktree): isolated per-branch checkouts sharing one cache stack
Parallel checkouts collided on the compose subnet, host ports and container
names, so a quality run in a worktree died at compose-up. Slot each checkout
via custom.env and layer two overrides on top: the shared cache network in
place of a second cache stack, and the shared .git directory without which
git aborts inside the container.

Both overlays gate on the resource they need, not on the slot number, so a
stray INFINITO_INSTANCE cannot make compose demand a value nobody set.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 16:15:59 +02:00

13 lines
486 B
YAML

---
# Layered on compose.yml for secondary instances. A git worktree's .git is a
# file pointing at an absolute path inside the primary checkout, so git only
# works in the container when that directory is mounted where the pointer
# expects it.
services:
infinito:
volumes:
- ${INFINITO_GIT_COMMON_DIR:?Set by 'make worktree-up' from git rev-parse
--git-common-dir}:${INFINITO_GIT_COMMON_DIR:?Set by 'make worktree-up'
from git rev-parse --git-common-dir}