github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/overlap/testdata/overlap.nomad (about) 1 job "overlap" { 2 datacenters = ["dc1", "dc2"] 3 type = "service" 4 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 group "overlap" { 11 count = 1 12 13 network { 14 # Reserve a static port so that the subsequent job run is blocked until 15 # the port is freed 16 port "hack" { 17 static = 7234 18 } 19 } 20 21 task "test" { 22 driver = "raw_exec" 23 24 # Delay shutdown to delay next placement 25 shutdown_delay = "8s" 26 27 config { 28 command = "bash" 29 args = ["-c", "sleep 15000"] 30 } 31 32 resources { 33 cpu = "500" 34 memory = "100" 35 } 36 } 37 } 38 } 39