From 9eaf0f3b8fa86b16613a4e9a1733c95ff7b138bd Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 9 Feb 2023 18:07:52 +0100 Subject: [PATCH] Lower default prune target for images to 7 days. Its just a local convenience cache. Dont risk filling up the disk on very active development. --- lib/mrsk/commands/prune.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mrsk/commands/prune.rb b/lib/mrsk/commands/prune.rb index dd9b14b8..9ce5645e 100644 --- a/lib/mrsk/commands/prune.rb +++ b/lib/mrsk/commands/prune.rb @@ -2,8 +2,8 @@ require "active_support/duration" require "active_support/core_ext/numeric/time" class Mrsk::Commands::Prune < Mrsk::Commands::Base - PRUNE_IMAGES_AFTER = 30.days.in_hours.to_i - PRUNE_CONTAINERS_AFTER = 3.days.in_hours.to_i + PRUNE_IMAGES_AFTER = 7.days.in_hours.to_i + PRUNE_CONTAINERS_AFTER = 3.days.in_hours.to_i def images docker :image, :prune, "-f", "--filter", "until=#{PRUNE_IMAGES_AFTER}h"