2015-09-15 00:43:42 +00:00
|
|
|
job "binstore-storagelocker" {
|
|
|
|
region = "global"
|
|
|
|
type = "service"
|
|
|
|
priority = 50
|
|
|
|
all_at_once = true
|
|
|
|
datacenters = ["us2", "eu1"]
|
|
|
|
|
2015-09-15 00:46:52 +00:00
|
|
|
meta {
|
|
|
|
foo = "bar"
|
|
|
|
}
|
|
|
|
|
2015-09-15 00:43:42 +00:00
|
|
|
task "outside" {
|
|
|
|
driver = "java"
|
|
|
|
config {
|
|
|
|
jar = "s3://my-cool-store/foo.jar"
|
|
|
|
}
|
|
|
|
meta {
|
|
|
|
my-cool-key = "foobar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group "binsl" {
|
|
|
|
count = 5
|
|
|
|
task "binstore" {
|
|
|
|
driver = "docker"
|
|
|
|
config {
|
|
|
|
image = "hashicorp/binstore"
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
cpu = 500
|
|
|
|
memory = 128
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task "storagelocker" {
|
|
|
|
driver = "java"
|
|
|
|
config {
|
|
|
|
image = "hashicorp/storagelocker"
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
cpu = 500
|
|
|
|
memory = 128
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
constraint {
|
|
|
|
attribute = "kernel.os"
|
|
|
|
value = "linux"
|
|
|
|
}
|
|
|
|
|
|
|
|
meta {
|
|
|
|
elb_mode = "tcp"
|
|
|
|
elb_interval = 10
|
|
|
|
elb_checks = 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|