open-nomad/e2e/isolation/input/chroot_exec.nomad
Michael Schurter 832bca91a1
e2e fixes: cli output, timing issue, and some cleanups (#16418)
* e2e: job expects alloc to run until stopped

* e2e: fix case changed by #16306

* e2e: couldn't find a bug but improved test+jobspecs
2023-03-10 13:14:51 -08:00

27 lines
445 B
HCL

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
}
}
}
}