2015-11-18 01:06:29 +00:00
|
|
|
job "binstore-storagelocker" {
|
2016-04-09 22:38:42 +00:00
|
|
|
region = "global"
|
|
|
|
type = "service"
|
|
|
|
priority = 50
|
|
|
|
all_at_once = true
|
|
|
|
datacenters = ["us2", "eu1"]
|
2016-08-11 22:37:53 +00:00
|
|
|
vault_token = "foo"
|
2015-11-18 01:06:29 +00:00
|
|
|
|
2016-04-09 22:38:42 +00:00
|
|
|
meta {
|
|
|
|
foo = "bar"
|
|
|
|
}
|
|
|
|
|
|
|
|
constraint {
|
|
|
|
attribute = "kernel.os"
|
|
|
|
value = "windows"
|
|
|
|
}
|
|
|
|
|
|
|
|
update {
|
|
|
|
stagger = "60s"
|
|
|
|
max_parallel = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
task "outside" {
|
|
|
|
driver = "java"
|
2015-11-18 01:06:29 +00:00
|
|
|
|
2016-04-09 22:38:42 +00:00
|
|
|
config {
|
|
|
|
jar_path = "s3://my-cool-store/foo.jar"
|
2015-11-18 01:06:29 +00:00
|
|
|
}
|
|
|
|
|
2016-04-09 22:38:42 +00:00
|
|
|
meta {
|
|
|
|
my-cool-key = "foobar"
|
2015-11-18 01:06:29 +00:00
|
|
|
}
|
2016-04-09 22:38:42 +00:00
|
|
|
}
|
2015-11-18 01:06:29 +00:00
|
|
|
|
2016-04-09 22:38:42 +00:00
|
|
|
group "binsl" {
|
|
|
|
count = 5
|
|
|
|
|
|
|
|
restart {
|
|
|
|
attempts = 5
|
|
|
|
interval = "10m"
|
|
|
|
delay = "15s"
|
2015-11-18 01:06:29 +00:00
|
|
|
}
|
|
|
|
|
2016-04-09 22:38:42 +00:00
|
|
|
task "binstore" {
|
|
|
|
driver = "docker"
|
|
|
|
|
|
|
|
config {
|
|
|
|
image = "hashicorp/binstore"
|
|
|
|
}
|
|
|
|
|
|
|
|
env {
|
|
|
|
HELLO = "world"
|
|
|
|
LOREM = "ipsum"
|
|
|
|
}
|
|
|
|
|
|
|
|
service {
|
|
|
|
tags = ["foo", "bar"]
|
|
|
|
port = "http"
|
|
|
|
|
|
|
|
check {
|
|
|
|
name = "check-name"
|
|
|
|
type = "http"
|
|
|
|
interval = "10s"
|
|
|
|
timeout = "2s"
|
2015-11-18 01:06:29 +00:00
|
|
|
}
|
2016-04-09 22:38:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service {
|
|
|
|
port = "one"
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 500
|
|
|
|
memory = 128
|
|
|
|
|
|
|
|
network {
|
|
|
|
mbits = "100"
|
|
|
|
|
|
|
|
port "one" {
|
|
|
|
static = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
port "three" {
|
|
|
|
static = 3
|
|
|
|
}
|
|
|
|
|
2019-07-20 14:55:07 +00:00
|
|
|
port "http" {}
|
2015-11-18 01:06:29 +00:00
|
|
|
}
|
2016-04-09 22:38:42 +00:00
|
|
|
}
|
2016-02-16 01:38:08 +00:00
|
|
|
}
|
2016-04-09 22:38:42 +00:00
|
|
|
}
|
2015-11-18 01:06:29 +00:00
|
|
|
}
|