Skip to content

Commit

Permalink
chore(deployment) : Reduce the allowed time for images to stay
Browse files Browse the repository at this point in the history
We frequently encounter disk space issues.

Last I checked, a ton of images were sitting aroung since 5/6 days.

OI don't think we need that much cache time and it seems we don't reuse
much of the layers anyway (this could be another investigation, but...
longer)

Since every image is always pushed and downloaded almost entirely again,
there is little argument that we can just wipe the old ones more
frequently.
  • Loading branch information
vperron committed Aug 12, 2024
1 parent 580b8ef commit 3b23da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ resource "null_resource" "up" {

provisioner "remote-exec" {
inline = [
"docker image prune --all --force --filter 'until=168h'",
"docker container prune --force --filter 'until=168h'",
"docker image prune --all --force --filter 'until=48h'",
"docker container prune --force --filter 'until=48h'",
"cd ${local.work_dir}",
"docker compose --progress=plain up --pull=always --force-recreate --remove-orphans --wait --wait-timeout 1200 --quiet-pull --detach",
# FIXME: ideally this file should be removed
Expand Down

0 comments on commit 3b23da1

Please sign in to comment.