github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/consul/input/services_empty.nomad (about)

     1  job "consul-register-on-update" {
     2    datacenters = ["dc1"]
     3    type        = "service"
     4  
     5    constraint {
     6      attribute = "${attr.kernel.name}"
     7      value     = "linux"
     8    }
     9  
    10    group "echo" {
    11  
    12      task "busybox-nc" {
    13        driver = "docker"
    14  
    15        config {
    16          image   = "busybox:1"
    17          command = "nc"
    18          args = [
    19            "-ll",
    20            "-p",
    21            "1234",
    22            "-e",
    23          "/bin/cat"]
    24        }
    25  
    26        # no initial service definition
    27      }
    28    }
    29  }