github.com/ryanslade/nomad@v0.2.4-0.20160128061903-fc95782f2089/jobspec/test-fixtures/basic.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 on_success = true 39 mode = "delay" 40 } 41 task "binstore" { 42 driver = "docker" 43 config { 44 image = "hashicorp/binstore" 45 } 46 env { 47 HELLO = "world" 48 LOREM = "ipsum" 49 } 50 service { 51 tags = ["foo", "bar"] 52 port = "http" 53 check { 54 name = "check-name" 55 type = "tcp" 56 interval = "10s" 57 timeout = "2s" 58 } 59 } 60 resources { 61 cpu = 500 62 memory = 128 63 64 network { 65 mbits = "100" 66 port "one" { 67 static = 1 68 } 69 port "two" { 70 static = 2 71 } 72 port "three" { 73 static = 3 74 } 75 port "http" {} 76 port "https" {} 77 port "admin" {} 78 } 79 } 80 81 kill_timeout = "22s" 82 } 83 84 task "storagelocker" { 85 driver = "java" 86 config { 87 image = "hashicorp/storagelocker" 88 } 89 resources { 90 cpu = 500 91 memory = 128 92 } 93 constraint { 94 attribute = "kernel.arch" 95 value = "amd64" 96 } 97 } 98 99 constraint { 100 attribute = "kernel.os" 101 value = "linux" 102 } 103 104 meta { 105 elb_mode = "tcp" 106 elb_interval = 10 107 elb_checks = 3 108 } 109 } 110 }