Agents: 6,235 → 1,454 lines (-77%). Each agent compressed to Role/Behavior/Delegates/Output/Handoff format. Gitea commenting extracted to shared block (.kilo/shared/gitea-commenting.md). Self-evolution protocol extracted to shared block (.kilo/shared/self-evolution.md). Gitea API client centralized (.kilo/shared/gitea-api.md). Rules: 2,358 → 1,189 lines (-50%). Deleted sdet-engineer.md (duplicate of agent) and orchestrator-self-evolution.md (moved to shared/). Compressed docker (549→26), flutter (521→28), go (283→21), nodejs (271→27), code-skeptic (59→14) to checklists with skill references. Fitness: 54/54 tests pass, 29/29 agents validated, fitness=0.92
27 lines
1.0 KiB
Markdown
27 lines
1.0 KiB
Markdown
# Docker Reference
|
|
|
|
Quick reference for Docker, Compose, Swarm. Detailed patterns in `.kilo/skills/docker-*`.
|
|
|
|
## Checklist
|
|
|
|
- [ ] Multi-stage builds; order layers least→most frequently changing
|
|
- [ ] Run as non-root user; specific image versions (never `latest`)
|
|
- [ ] COPY package*.json before COPY . for cache; clean package manager caches
|
|
- [ ] Compose 3.8+; environment variables; resource limits; health checks
|
|
- [ ] .env for local secrets (gitignored); Docker secrets for Swarm
|
|
- [ ] Separated networks (frontend/backend); internal for DB
|
|
- [ ] Named volumes with labels; init scripts read-only
|
|
- [ ] Swarm: replicated services, rollback config, placement constraints
|
|
- [ ] Scan images: `trivy image` or `docker scout vulnerabilities`
|
|
- [ ] Logging: json-file driver, max-size/max-file limits
|
|
|
|
## Common Commands
|
|
|
|
```bash
|
|
docker-compose logs -f app # View logs
|
|
docker exec -it app sh # Shell into container
|
|
docker stats # Resource usage
|
|
docker system prune -a # Clean unused
|
|
docker scout vulnerabilities img # Scan
|
|
```
|