open-nomad/e2e/isolation/input/chroot_exec.nomad
2023-04-10 15:36:59 +00:00

30 lines
513 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
job "chroot_exec" {
type = "batch"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "print" {
task "env" {
driver = "exec"
config {
command = "/bin/bash"
args = [
"-c",
"echo $NOMAD_ALLOC_DIR; echo $NOMAD_TASK_DIR; echo $NOMAD_SECRETS_DIR; echo $PATH"
]
}
resources {
cpu = 50
memory = 50
}
}
}
}