From a748adbab0c8f1fdd144ab5a86735875823abf2c Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 27 Mar 2023 15:19:53 -0700 Subject: [PATCH] Store blocky config in local task dir --- core/blocky/blocky.nomad | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/blocky/blocky.nomad b/core/blocky/blocky.nomad index 05d1037..b3b17d1 100644 --- a/core/blocky/blocky.nomad +++ b/core/blocky/blocky.nomad @@ -66,13 +66,8 @@ job "blocky" { config { image = "ghcr.io/0xerr0r/blocky" + args = ["-c", "${NOMAD_TASK_DIR}/config.yml"] ports = ["dns", "api"] - - mount { - type = "bind" - target = "/app/config.yml" - source = "app/config.yml" - } } resources { @@ -83,7 +78,7 @@ job "blocky" { template { data = var.config_data - destination = "app/config.yml" + destination = "${NOMAD_TASK_DIR}/config.yml" splay = "1m" wait {