2025-12-08 12:07:01 +01:00
|
|
|
services:
|
|
|
|
|
kicad-wasm-builder:
|
|
|
|
|
build:
|
|
|
|
|
context: ..
|
|
|
|
|
dockerfile: docker/Dockerfile
|
2026-01-03 07:31:46 +01:00
|
|
|
# Container name is auto-generated with project prefix (set in build.sh)
|
2025-12-08 12:07:01 +01:00
|
|
|
|
2026-06-11 07:46:48 +02:00
|
|
|
# Resource limits. Defaults are sized for a dev Mac (Docker Desktop VM).
|
|
|
|
|
# CI overrides via env: the 32-core Hetzner runner sets KICAD_DOCKER_CPUS=$(nproc)
|
|
|
|
|
# and KICAD_DOCKER_MEM=110G — with the 10-CPU default, run 27226030304 compiled
|
|
|
|
|
# everything on 10 of 32 cores while passing -j 32 (3x oversubscribed).
|
2025-12-08 12:07:01 +01:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
2026-06-11 07:46:48 +02:00
|
|
|
cpus: '${KICAD_DOCKER_CPUS:-10}'
|
|
|
|
|
memory: ${KICAD_DOCKER_MEM:-32G}
|
2025-12-08 12:07:01 +01:00
|
|
|
|
|
|
|
|
volumes:
|
2025-12-27 01:07:44 +01:00
|
|
|
# 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
|
2025-12-08 12:07:01 +01:00
|
|
|
# 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:
|
2025-12-27 01:07:44 +01:00
|
|
|
workspace-src:
|