forked from d2iq-archive/tweeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtweeter.json
58 lines (58 loc) · 1.54 KB
/
tweeter.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"id": "/tweeter",
"cmd": "export KAFKA_BROKERS=`curl -s master.mesos:8123/v1/services/_broker-0._tcp.kafka.mesos | python -c 'import sys, json; j = json.load(sys.stdin); print(j[0][\"ip\"] + \":\" + j[0][\"port\"])'` && until rake cassandra:setup; do sleep 5; done && rails server",
"cpus": 0.25,
"mem": 256,
"disk": 0,
"instances": 3,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "mesosphere/tweeter",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 3000,
"hostPort": 0,
"servicePort": 10000,
"protocol": "tcp",
"labels": {
"VIP_0": "1.1.1.1:30000"
}
}
],
"privileged": false,
"parameters": [],
"forcePullImage": false
}
},
"env": {
"CASSANDRA_HOSTS": "node-0.cassandra.mesos",
"RAILS_ENV": "production",
"SECRET_KEY_BASE": "be6ea21bd0e8ddad06accbdfbfcbc6f120815744a8177fb1196442c1670401c86a1d020f1fb62f9b7d6bacc8cf818de277d23d3f3e7dcf704ca88965e5b9ed86"
},
"healthChecks": [
{
"path": "/",
"protocol": "HTTP",
"portIndex": 0,
"gracePeriodSeconds": 300,
"intervalSeconds": 5,
"timeoutSeconds": 2,
"maxConsecutiveFailures": 2,
"ignoreHttp1xx": false
}
],
"labels": {
"HAPROXY_0_VHOST": "ian-3we0u-publicsl-zvt5scxlwzcg-90819965.us-west-2.elb.amazonaws.com",
"HAPROXY_GROUP": "external"
},
"portDefinitions": [
{
"port": 10000,
"protocol": "tcp",
"labels": {}
}
]
}