open-nomad/e2e/nomadexec/testdata/docker.nomad

26 lines
390 B
Plaintext
Raw Normal View History

2019-04-28 21:35:42 +00:00
job "nomadexec-docker" {
datacenters = ["dc1"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
2019-04-28 21:35:42 +00:00
group "group" {
task "task" {
driver = "docker"
config {
2019-10-11 12:00:05 +00:00
image = "busybox:1.29.2"
2019-04-28 21:35:42 +00:00
command = "/bin/sleep"
2019-10-11 12:00:05 +00:00
args = ["1000"]
2019-04-28 21:35:42 +00:00
}
resources {
cpu = 500
memory = 256
}
}
}
2019-10-11 12:00:05 +00:00
}