github.com/huiliang/nomad@v0.2.1-0.20151124023127-7a8b664699ff/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  
     8      meta {
     9          foo = "bar"
    10      }
    11  
    12      constraint {
    13          attribute = "kernel.os"
    14          value = "windows"
    15      }
    16  
    17      update {
    18          stagger = "60s"
    19          max_parallel = 2
    20      }
    21  
    22      task "outside" {
    23          driver = "java"
    24          config {
    25             jar = "s3://my-cool-store/foo.jar"
    26          }
    27          meta {
    28             my-cool-key = "foobar"
    29          }
    30      }
    31  
    32      group "binsl" {
    33          count = 5
    34          restart {
    35              attempts = 5
    36              interval = "10m"
    37              delay = "15s"
    38          }
    39          task "binstore" {
    40              driver = "docker"
    41              config {
    42                  image = "hashicorp/binstore"
    43              }
    44              env {
    45                HELLO = "world"
    46                LOREM = "ipsum"
    47              }
    48              service {
    49                  tags = ["foo", "bar"]
    50                  port = "http"
    51                  check {
    52                      name = "check-name"
    53                      type = "http"
    54                      interval = "10s"
    55                      timeout = "2s"
    56                  }
    57              }
    58              service {
    59                  port = "one"
    60              }
    61              resources {
    62                  cpu = 500
    63                  memory = 128
    64  
    65                  network {
    66                      mbits = "100"
    67                      port "one" {
    68                          static = 1
    69                      }
    70                      port "three" {
    71                          static = 3
    72                      }
    73                      port "http" {}
    74                  }
    75              }
    76          }
    77  }