[nomad-step-4] S4-fix-6 — bake Claude CLI into agents Docker image (remove host bind-mount) #984
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#984
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step 4 verification: agents crash
FATAL: claude CLI not found in PATH. The Claude Code CLI is the agent runtime regardless of LLM backend (llama or Claude API). Currently host-mounted via compose; Nomad jobspec needs it self-contained.Decision
Bake Claude CLI into the Docker image (option B). No host dependency, reproducible from clone.
Fix
In
docker/agents/Dockerfile, add after the existing tool installs:Then remove the host bind-mount from
nomad/jobs/agents.hclif one exists (it shouldn't since the jobspec was created fresh, but verify).Also remove the corresponding host bind-mount from
docker-compose.yml's agents service:This makes both docker-compose AND Nomad backends use the same self-contained image. No host path coupling.
Side effects
npm install -g @anthropic-ai/claude-code@2.1.84(or latest).docker compose build— test that the factory still works after the rebuild.Acceptance criteria
docker build -t disinto/agents:local -f docker/agents/Dockerfile .succeeds.docker run --rm disinto/agents:local claude --versionreturns the CLI version.FATAL: claude CLI not found.nomad alloc logs <agents>showsAgent container starting+ polling iterations.Labels / meta
backlog+bug-report.