diff --git a/e2e/isolation/input/alloc_exec.nomad b/e2e/isolation/input/alloc_exec.nomad index 4c36d4af6..2135d05eb 100644 --- a/e2e/isolation/input/alloc_exec.nomad +++ b/e2e/isolation/input/alloc_exec.nomad @@ -13,7 +13,7 @@ job "alloc_exec" { config { command = "/bin/sleep" - args = ["30s"] + args = ["30s"] } resources { diff --git a/e2e/isolation/input/alloc_exec_java.nomad b/e2e/isolation/input/alloc_exec_java.nomad new file mode 100644 index 000000000..7f284079b --- /dev/null +++ b/e2e/isolation/input/alloc_exec_java.nomad @@ -0,0 +1,39 @@ +job "java_sleep" { + datacenters = ["dc1"] + type = "batch" + + group "java" { + + task "build" { + lifecycle { + hook = "prestart" + sidecar = false + } + + driver = "exec" + config { + command = "javac" + args = ["-d", "${NOMAD_ALLOC_DIR}", "local/Sleep.java"] + } + + template { + destination = "local/Sleep.java" + data = <