diff --git a/services/nomad/apps/popcorn-report.nomad b/services/nomad/apps/popcorn-report.nomad new file mode 100644 index 0000000..18db18f --- /dev/null +++ b/services/nomad/apps/popcorn-report.nomad @@ -0,0 +1,61 @@ +job "popcorn-report" { + datacenters = ["VOID"] + namespace = "apps" + type = "batch" + + periodic { + crons = ["@daily"] + prohibit_overlap = true + } + + group "report" { + count = 1 + + volume "popcorn_data" { + type = "host" + source = "popcorn_data" + read_only = false + } + + task "report" { + driver = "docker" + + config { + image = "ghcr.io/void-linux/infra-popcorn:TODO" + command = "/local/popcorn-report" + } + + volume_mount { + volume = "popcorn_data" + destination = "/data" + } + + env { + OUTDIR = "/data" + } + + template { + data = <