github.com/hernad/nomad@v1.6.112/e2e/consul/input/alloc_restart.hcl (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "alloc-restart" { 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 group "group" { 11 network { 12 port "http" { 13 to = 8080 14 } 15 } 16 17 service { 18 name = "alloc-restart-http" 19 port = "http" 20 } 21 22 task "python" { 23 driver = "raw_exec" 24 25 config { 26 command = "python3" 27 args = ["-m", "http.server", "8080", "--directory", "/tmp"] 28 } 29 30 resources { 31 cpu = 16 32 memory = 32 33 } 34 } 35 } 36 }