github.com/taylorchu/nomad@v0.5.3-rc1.0.20170407200202-db11e7dd7b55/jobspec/test-fixtures/incorrect-service-def.hcl (about)

     1  job "binstore-storagelocker" {
     2    region      = "global"
     3    type        = "service"
     4    priority    = 50
     5    all_at_once = true
     6    datacenters = ["us2", "eu1"]
     7    vault_token = "foo"
     8  
     9    meta {
    10      foo = "bar"
    11    }
    12  
    13    constraint {
    14      attribute = "kernel.os"
    15      value     = "windows"
    16    }
    17  
    18    update {
    19      stagger      = "60s"
    20      max_parallel = 2
    21    }
    22  
    23    task "outside" {
    24      driver = "java"
    25  
    26      config {
    27        jar_path = "s3://my-cool-store/foo.jar"
    28      }
    29  
    30      meta {
    31        my-cool-key = "foobar"
    32      }
    33    }
    34  
    35    group "binsl" {
    36      count = 5
    37  
    38      restart {
    39        attempts = 5
    40        interval = "10m"
    41        delay    = "15s"
    42      }
    43  
    44      task "binstore" {
    45        driver = "docker"
    46  
    47        config {
    48          image = "hashicorp/binstore"
    49        }
    50  
    51        env {
    52          HELLO = "world"
    53          LOREM = "ipsum"
    54        }
    55  
    56        service {
    57          tags = ["foo", "bar"]
    58          port = "http"
    59  
    60          check {
    61            name     = "check-name"
    62            type     = "http"
    63            interval = "10s"
    64            timeout  = "2s"
    65          }
    66        }
    67  
    68        service {
    69          port = "one"
    70        }
    71  
    72        resources {
    73          cpu    = 500
    74          memory = 128
    75  
    76          network {
    77            mbits = "100"
    78  
    79            port "one" {
    80              static = 1
    81            }
    82  
    83            port "three" {
    84              static = 3
    85            }
    86  
    87            port "http" {
    88            }
    89          }
    90        }
    91      }
    92    }
    93  }