github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/consultemplate/input/template_paths.nomad (about) 1 job "template-paths" { 2 datacenters = ["dc1", "dc2"] 3 4 meta { 5 ARTIFACT_DEST_DIR = "local/foo/src" 6 } 7 8 constraint { 9 attribute = "${attr.kernel.name}" 10 value = "linux" 11 } 12 13 group "template-paths" { 14 15 task "task" { 16 17 driver = "docker" 18 19 config { 20 image = "busybox:1" 21 command = "/bin/sh" 22 args = ["-c", "sleep 300"] 23 } 24 25 artifact { 26 source = "https://google.com" 27 destination = "${NOMAD_META_ARTIFACT_DEST_DIR}" 28 } 29 30 template { 31 source = "${NOMAD_TASK_DIR}/foo/src" 32 destination = "${NOMAD_SECRETS_DIR}/foo/dst" 33 } 34 35 template { 36 destination = "${NOMAD_ALLOC_DIR}/shared.txt" 37 data = <<EOH 38 Data shared between all task in alloc dir. 39 EOH 40 } 41 42 resources { 43 cpu = 128 44 memory = 64 45 } 46 } 47 } 48 }