lint some nomad HCL job specs

This commit is contained in:
Chris Baker
2021-01-27 20:49:47 +00:00
parent f4fe79ad89
commit bcb78f15bf
2 changed files with 10 additions and 10 deletions

View File

@@ -1,24 +1,24 @@
job "java_sleep" {
datacenters = ["dc1"]
type = "batch"
type = "batch"
group "java" {
task "build" {
lifecycle {
hook = "prestart"
hook = "prestart"
sidecar = false
}
driver = "exec"
config {
command = "javac"
args = ["-d", "${NOMAD_ALLOC_DIR}", "local/Sleep.java"]
args = ["-d", "${NOMAD_ALLOC_DIR}", "local/Sleep.java"]
}
template {
destination = "local/Sleep.java"
data = <<EOH
data = <<EOH
public class Sleep {
public static void main(String... s) throws Exception {
Thread.sleep(30000);
@@ -32,7 +32,7 @@ EOH
driver = "java"
config {
class_path = "${NOMAD_ALLOC_DIR}"
class = "Sleep"
class = "Sleep"
}
}
}