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:48:11 +00:00
|
|
|
constraint {
|
|
|
|
attribute = "kernel.os"
|
|
|
|
value = "windows"
|
|
|
|
}
|
|
|
|
|
2015-09-20 21:18:10 +00:00
|
|
|
update {
|
|
|
|
stagger = "60s"
|
|
|
|
max_parallel = 2
|
|
|
|
}
|
|
|
|
|
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
|
2015-10-30 22:51:39 +00:00
|
|
|
restart {
|
|
|
|
attempts = 5
|
|
|
|
interval = "10m"
|
|
|
|
delay = "15s"
|
2015-12-18 20:17:13 +00:00
|
|
|
mode = "delay"
|
2015-10-30 22:51:39 +00:00
|
|
|
}
|
2015-09-15 00:43:42 +00:00
|
|
|
task "binstore" {
|
|
|
|
driver = "docker"
|
|
|
|
config {
|
|
|
|
image = "hashicorp/binstore"
|
|
|
|
}
|
2015-09-30 16:18:43 +00:00
|
|
|
env {
|
|
|
|
HELLO = "world"
|
2015-09-30 16:23:53 +00:00
|
|
|
LOREM = "ipsum"
|
2015-09-30 16:18:43 +00:00
|
|
|
}
|
2015-11-18 00:05:03 +00:00
|
|
|
service {
|
2015-11-17 06:51:08 +00:00
|
|
|
tags = ["foo", "bar"]
|
|
|
|
port = "http"
|
2015-11-18 00:05:03 +00:00
|
|
|
check {
|
2015-11-17 06:51:08 +00:00
|
|
|
name = "check-name"
|
|
|
|
type = "tcp"
|
|
|
|
interval = "10s"
|
|
|
|
timeout = "2s"
|
|
|
|
}
|
|
|
|
}
|
2015-09-15 00:43:42 +00:00
|
|
|
resources {
|
|
|
|
cpu = 500
|
|
|
|
memory = 128
|
2015-09-15 01:27:37 +00:00
|
|
|
|
|
|
|
network {
|
|
|
|
mbits = "100"
|
2015-11-15 08:10:48 +00:00
|
|
|
port "one" {
|
|
|
|
static = 1
|
|
|
|
}
|
|
|
|
port "two" {
|
|
|
|
static = 2
|
|
|
|
}
|
|
|
|
port "three" {
|
|
|
|
static = 3
|
|
|
|
}
|
|
|
|
port "http" {}
|
|
|
|
port "https" {}
|
|
|
|
port "admin" {}
|
2015-09-15 01:27:37 +00:00
|
|
|
}
|
2015-09-15 00:43:42 +00:00
|
|
|
}
|
2015-12-23 00:10:30 +00:00
|
|
|
|
|
|
|
kill_timeout = "22s"
|
2015-09-15 00:43:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task "storagelocker" {
|
|
|
|
driver = "java"
|
|
|
|
config {
|
|
|
|
image = "hashicorp/storagelocker"
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
cpu = 500
|
|
|
|
memory = 128
|
2016-02-02 20:00:26 +00:00
|
|
|
IOPS = 30
|
2015-09-15 00:43:42 +00:00
|
|
|
}
|
2015-09-15 00:50:34 +00:00
|
|
|
constraint {
|
|
|
|
attribute = "kernel.arch"
|
|
|
|
value = "amd64"
|
|
|
|
}
|
2015-09-15 00:43:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
constraint {
|
|
|
|
attribute = "kernel.os"
|
|
|
|
value = "linux"
|
|
|
|
}
|
|
|
|
|
|
|
|
meta {
|
|
|
|
elb_mode = "tcp"
|
|
|
|
elb_interval = 10
|
|
|
|
elb_checks = 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|