mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-26 06:43:10 +00:00
- Replace jvm_filters with unified memory_filters (JVM + Redis helpers) - Add redis_maxmemory_mb filter and unit tests - Introduce sys-ctl-cln-docker role (systemd-based Docker prune + anon volumes) - Refactor disk space health check to Python script and wire SIZE_PERCENT_CLEANUP_DISC_SPACE - Adjust schedules and services for Docker cleanup and disk space health See discussion: https://chatgpt.com/share/6925c1c5-ee38-800f-84b6-da29ccfa7537
11 lines
394 B
Django/Jinja
11 lines
394 B
Django/Jinja
#!/bin/sh
|
|
# Cleans up anonymous Docker volumes and performs a full Docker system prune.
|
|
|
|
set -e
|
|
|
|
echo "Cleaning up anonymous Docker volumes via systemd service..."
|
|
systemctl start {{ SYS_SERVICE_CLEANUP_ANONYMOUS_VOLUMES }} || exit 1
|
|
echo "Pruning Docker system resources (images, containers, networks, build cache)..."
|
|
docker system prune -a -f || exit 2
|
|
echo "Docker prune cleanup finished."
|