Add more cleanup options.

This commit is contained in:
Thomas E Lackey 2024-02-27 23:59:16 +00:00
parent a3219605e3
commit 14646f42b2

9
run.sh
View File

@ -137,6 +137,11 @@ while true; do
--discover --discover
# Cleanup any build leftovers # Cleanup any build leftovers
docker system prune --all --force if [[ "${SYSTEM_PRUNE:-false}" == "true" ]]; then
sleep 15 docker system prune --all --force
fi
if [[ "${WEBAPP_IMAGE_PRUNE:-true}" == "true" ]]; then
docker image rm -f $(docker image ls --quiet --filter 'reference=laconic-webapp')
fi
sleep ${CHECK_INTERVAL:-15}
done done