- README.md: Add Quick Start section with full build sequence - docker/README.md: Document branch-specific builds with git worktrees - docker/build.sh: Use branch name for COMPOSE_PROJECT_NAME - docker/docker-compose.yml: Remove hardcoded container_name Each branch now gets isolated Docker containers/volumes, enabling parallel development across git worktrees. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
944 B
YAML
32 lines
944 B
YAML
services:
|
|
kicad-wasm-builder:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
# Container name is auto-generated with project prefix (set in build.sh)
|
|
|
|
# Resource limits (adjust based on your machine)
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '10'
|
|
memory: 32G
|
|
|
|
volumes:
|
|
# Host source mounted read-only at staging location
|
|
# (rsync'd to /workspace on container start to fix macOS timestamp issues)
|
|
- ..:/workspace-host:ro
|
|
# Synced source in Docker volume (consistent timestamps)
|
|
- workspace-src:/workspace
|
|
# Named volume for build cache (faster than bind mount on macOS)
|
|
- kicad-build-cache:/workspace/build-wasm
|
|
# Output directory for easy access to final WASM files
|
|
- ../output:/workspace/output
|
|
|
|
# Keep container running for interactive use
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
volumes:
|
|
kicad-build-cache:
|
|
workspace-src:
|