github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/isolation/input/raw_exec.nomad (about) 1 job "raw_exec" { 2 datacenters = ["dc1"] 3 type = "batch" 4 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 group "raw_exec" { 11 task "raw_exec" { 12 driver = "raw_exec" 13 14 config { 15 command = "bash" 16 args = [ 17 "-c", "local/pid.sh" 18 ] 19 } 20 21 template { 22 data = <<EOF 23 #!/usr/bin/env bash 24 echo my pid is $BASHPID 25 EOF 26 27 destination = "local/pid.sh" 28 perms = "777" 29 change_mode = "noop" 30 } 31 32 resources { 33 cpu = 100 34 memory = 64 35 } 36 } 37 } 38 }