KeiSeiKit-1.0/.dockerignore
Parfii-bot 2b3ba50ccb docs(v0.21): .dockerignore + USB brain step-by-step guide
.dockerignore — trim Docker build context (was trying to pack
2.6 GB target/ + 6 GB .claude/worktrees/ + 212 MB node_modules/
on 2026-04-22, causing daemon I/O error). Excludes Rust target,
TS node_modules/dist/.turbo, agent worktrees, .git, IDE files,
logs. Essential before any tests/battle/* docker build.

docs/USB-BRAIN-GUIDE.md — 11-step recipe for the physical-USB
exobrain workflow:
  1-4. Prepare + download 5 platform binaries + verify sha256
  5-6. keisei attach --scope=user → verify in Claude Code
  7.   keisei mount for multi-client fan-out
  8.   --scope=project for per-repo brains
  9-10. status + detach cleanup
  11.  safe eject
Plus Troubleshooting section (7 common errors with fixes),
plus What-this-tests-end-to-end checklist (6 v0.21 features
exercised).

Target audience: first-time user of v0.21 exobrain feature on
macOS (Linux adaptation notes inline).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 18:47:12 +08:00

46 lines
984 B
Text

# .dockerignore — trim the Docker build context.
# Without this, `docker build` tries to copy the full working tree into the
# daemon, including target/ (2.6 GB after v0.21 aws-sdk-s3), agent worktrees
# (6+ GB), and node_modules. That caused an I/O error on 2026-04-22 when the
# battle-test image tried to pack everything.
#
# Keep this list aligned with tests/battle/Dockerfile.install-test — anything
# the Dockerfile actually needs (scripts/, install/, hooks/, skills/, etc.)
# must NOT be listed here.
# Rust build artefacts
**/target/
**/*.rlib
**/*.rmeta
# TypeScript / node
**/node_modules/
**/dist/
**/.turbo/
# Agent worktrees (several GB — never relevant inside a container build)
.claude/worktrees/
# Git internal (we don't need history inside the image)
.git/
# IDE + OS
.DS_Store
.idea/
.vscode/
*.swp
# Editor backups
*~
*.bak
*.bak-*
# Secrets (defence in depth — RULE 0.8 + project .gitignore)
**/.env
**/secrets/*.env
*.pem
*.key
# Logs
*.log
/tmp/