Skip to content

feat(claude-code): add pure Dockerfile and multi-arch build/verify CI - #4

Open
Lukeluds wants to merge 3 commits into
agentexecutor:mainfrom
Lukeluds:feat/claude-code-dockerfile
Open

Lukeluds wants to merge 3 commits into
agentexecutor:mainfrom
Lukeluds:feat/claude-code-dockerfile

Conversation

@Lukeluds

Copy link
Copy Markdown
Collaborator

Note: Stacked on #3 (see commit 6007017 for only this PR's diff; the PR diff will shrink automatically once #3 merges).

Adds agents/claude-code/Dockerfile and extends .github/workflows/claude-code.yaml with native linux/amd64 and linux/arm64 build and purity verification (no image push yet):

  • Pure AX agent image: No ax-task-runner baked in and no forced ENTRYPOINT, ready for AX to mount the static runner read-only at /opt/ax.
  • Runtime install by default (ARG PREINSTALL_CLAUDE=false): Ships only debian:bookworm-slim packages and /usr/local/bin/ax-harness so no proprietary binary is bundled in the built image (ax-harness installs CLAUDE_CODE_VERSION on startup).
  • Optional pre-installed local builds (--build-arg PREINSTALL_CLAUDE=true): Pre-installs claude at build time for local/airgapped E2E test environments.
  • Multi-arch CI (ubuntu-24.04 + ubuntu-24.04-arm, build-only): Verifies the default image contains neither ax-task-runner nor claude, smoke-tests ax-harness / git / python3, and runs an ephemeral local PREINSTALL_CLAUDE=true build (claude --version, removed at job end).

Match the files the AX runner writes for the image's launcher:

- Read the prompt from AX_GOAL_FILE (spec.goal.text) as-is and reject
  spec.config.prompt instead of skipping it.
- Write the answer to AX_OUTPUT_FILE when set, still printing it to
  stdout and keeping claude's exit code.
- Pass AX_MCP_CONFIG_FILE as --mcp-config when it lists a server.
- Fail on an invalid spec.config instead of silently dropping flags
  (the translation ran in a process substitution, whose exit code was
  ignored).
@MushuEE

MushuEE commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Tracking: the release epic #12 covers publishing images from this repo. The Claude Code image is left out of publishing there for now, so this PR isn't tied to the v0.0.0 release work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants