feat(monitoring): auto-prune Docker + node_modules, 15-min disk check interval

- check-disk-space.sh: always prune dangling images, unused volumes, and
  build cache >7 days on every run (not just at critical threshold)
- check-disk-space.sh: auto-remove node_modules if found on server
  (never needed — Docker builds inside containers)
- disk-check launchd: reduce interval from 60min to 15min to catch
  disk issues faster (yesterday we hit 100% before hourly check caught it)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-30 20:14:13 +02:00
parent 4e370911e8
commit 7ff72d6c2c
2 changed files with 46 additions and 13 deletions

View file

@ -11,9 +11,9 @@
<string>/Users/mana/projects/manacore-monorepo/scripts/mac-mini/check-disk-space.sh</string>
</array>
<!-- Run hourly -->
<!-- Run every 15 minutes — frequent enough to catch disk issues early -->
<key>StartInterval</key>
<integer>3600</integer>
<integer>900</integer>
<!-- Also run at startup -->
<key>RunAtLoad</key>