mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
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>
13 lines
486 B
YAML
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}
|