2022-09-26 20:40:29 +00:00
|
|
|
job "chroot_docker" {
|
2023-03-10 21:14:51 +00:00
|
|
|
type = "batch"
|
2022-09-26 20:40:29 +00:00
|
|
|
|
|
|
|
constraint {
|
|
|
|
attribute = "${attr.kernel.name}"
|
|
|
|
value = "linux"
|
|
|
|
}
|
|
|
|
|
|
|
|
group "print" {
|
|
|
|
task "env" {
|
|
|
|
driver = "docker"
|
|
|
|
config {
|
|
|
|
image = "busybox:1"
|
|
|
|
args = [
|
|
|
|
"/bin/sh",
|
|
|
|
"-c",
|
|
|
|
"echo $NOMAD_ALLOC_DIR; echo $NOMAD_TASK_DIR; echo $NOMAD_SECRETS_DIR; echo $PATH"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
cpu = 50
|
2023-03-10 21:14:51 +00:00
|
|
|
memory = 50
|
2022-09-26 20:40:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|