Add more cleanup options.

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

7
run.sh
View File

@ -137,6 +137,11 @@ while true; do
--discover --discover
# Cleanup any build leftovers # Cleanup any build leftovers
if [[ "${SYSTEM_PRUNE:-false}" == "true" ]]; then
docker system prune --all --force docker system prune --all --force
sleep 15 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