Files
nomad/e2e/isolation/input/chroot_exec.nomad
Seth Hoenig 32be86831f e2e: convert chroot env unit tests into e2e tests (#14710)
This PR translates two of our most flakey unit tests into
e2e tests where they are fit much more naturally.
2022-09-26 15:40:29 -05:00

25 lines
473 B
HCL

job "chroot_exec" {
datacenters = ["dc1"]
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 = 10
memory = 16
}
}
}
}