2023-04-10 15:36:59 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-09-26 20:40:29 +00:00
|
|
|
job "chroot_exec" {
|
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"
|
|
|
|
}
|
2023-03-10 21:14:51 +00:00
|
|
|
|
2022-09-26 20:40:29 +00:00
|
|
|
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"
|
|
|
|
]
|
|
|
|
}
|
2023-03-10 21:14:51 +00:00
|
|
|
|
2022-09-26 20:40:29 +00:00
|
|
|
resources {
|
2023-03-10 21:14:51 +00:00
|
|
|
cpu = 50
|
|
|
|
memory = 50
|
2022-09-26 20:40:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|