github.com/hernad/nomad@v1.6.112/e2e/isolation/input/chroot_exec.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "chroot_exec" { 5 type = "batch" 6 7 constraint { 8 attribute = "${attr.kernel.name}" 9 value = "linux" 10 } 11 12 group "print" { 13 task "env" { 14 driver = "exec" 15 config { 16 command = "/bin/bash" 17 args = [ 18 "-c", 19 "echo $NOMAD_ALLOC_DIR; echo $NOMAD_TASK_DIR; echo $NOMAD_SECRETS_DIR; echo $PATH" 20 ] 21 } 22 23 resources { 24 cpu = 50 25 memory = 50 26 } 27 } 28 } 29 }