github.com/hernad/nomad@v1.6.112/e2e/parameterized/input/simple.nomad (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "periodic" {
     5    datacenters = ["dc1"]
     6    type        = "batch"
     7  
     8    constraint {
     9      attribute = "${attr.kernel.name}"
    10      operator  = "set_contains_any"
    11      value     = "darwin,linux"
    12    }
    13  
    14    parameterized {
    15      meta_optional = ["i"]
    16    }
    17  
    18    group "group" {
    19      task "task" {
    20        driver = "docker"
    21  
    22        config {
    23          image   = "busybox:1"
    24          command = "/bin/sh"
    25          args    = ["-c", "sleep 5"]
    26        }
    27      }
    28    }
    29  }