From 0d25b5d03dd54fd943caa203c0a2fc31fdc3cac7 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 23 Oct 2022 17:32:01 +0200 Subject: [PATCH] custom seed sync job --- nomad-job/seedboxsync.nomad | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/nomad-job/seedboxsync.nomad b/nomad-job/seedboxsync.nomad index 4bbdbee..6e6e300 100644 --- a/nomad-job/seedboxsync.nomad +++ b/nomad-job/seedboxsync.nomad @@ -6,9 +6,11 @@ job "seedboxsync" { meta { forcedeploy = "0" } - # constraint { - #} + constraint { + attribute = "${attr.cpu.arch}" + value = "amd64" + } periodic { cron = "0,30 * * * *" prohibit_overlap = true @@ -26,7 +28,7 @@ job "seedboxsync" { name = "lftp" } config { - image = "minidocks/lftp" + image = "ducampsv/lftp:latest" volumes = [ "/mnt/diskstation/media/download:/media" ] @@ -37,7 +39,10 @@ job "seedboxsync" { ] } - + env { + USER_ID=1000001 + GROUP_ID=1000007 + } template { data= <