nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

commit 8960cfa68c320262ad1f4ded713ac61ad5c72c36
parent f9930b744bf27522acd307aed414849108328efa
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Wed, 19 Jul 2023 15:32:17 +0200

feat(garbage): podman prune

Diffstat:
Mhcl/infra/garbage/docker-prune.nomad | 17++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/hcl/infra/garbage/docker-prune.nomad b/hcl/infra/garbage/docker-prune.nomad @@ -2,13 +2,11 @@ job "docker-prune" { datacenters = ["dc1"] type = "sysbatch" -# periodic { -# # At minute 36 past every hour -# #cron = "36 */1 * * *" -# # All 4 minutes -# cron = "4/1 * * * *" -# prohibit_overlap = true -# } + periodic { + # All 8 hours + cron = "3 1/8 * * *" + prohibit_overlap = true + } group "prune" { count = 1 @@ -22,11 +20,12 @@ job "docker-prune" { config { command = "/usr/bin/sh" - args = ["-c", "docker system prune --force"] + args = ["-c", "podman system prune --all --force"] } resources { - memory = 16 + memory = 64 + memory_max = 256 cpu = 100 } }