]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
setup_container_runtime.sh: Prune more images
authorZack Cerza <zack@cerza.org>
Tue, 22 Apr 2025 16:19:23 +0000 (10:19 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 7 May 2025 23:28:45 +0000 (17:28 -0600)
Only leave one weeks' worth.

Signed-off-by: Zack Cerza <zack@cerza.org>
scripts/setup_container_runtime.sh

index 95bd3f53eb9f337b1680b999ff226bd502fafb89..8235d705df5455ff844082625047fa203dde1097 100755 (executable)
@@ -33,7 +33,7 @@ function setup_container_runtime () {
       if [ -d $PODMAN_STORAGE_DIR ]; then
         sudo chgrp -R $(groups | cut -d' ' -f1) $PODMAN_STORAGE_DIR
         if [ $(podman unshare du -s --block-size=1G $PODMAN_STORAGE_DIR | awk '{print $1}') -ge 50 ]; then
-          time podman image prune --filter=until="$(echo '24*7*2' | bc)h" --all --force
+          time podman image prune --filter=until="$(echo '24*7' | bc)h" --all --force
           time podman system prune --force
           test "$PODMAN_MAJOR_VERSION" -ge 5 && time podman system check --repair --quick
         fi