Skip to content

Commit 2f2385a

Browse files
committed
Updated to work with mesos artifact fetch
1 parent b7156ef commit 2f2385a

File tree

2 files changed

+43
-45
lines changed

2 files changed

+43
-45
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const manifest = [
66
];
77

88
const dist = 'dist';
9-
const bundle = dist + '/MathService.tgz';
9+
const bundle = dist + '/bundle.tgz';
1010

1111
module.exports = function(grunt) {
1212

marathon-service-description.json

Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,67 @@
11
{
22
"id": "/micro/math-service",
3-
"args": [
4-
"-u",
5-
"https://github.com/mesos-playground/MathService/releases/download/2017.09.16-1/MathService.tgz"
6-
],
7-
"instances": 1,
8-
"cpus": 0.1,
9-
"mem": 32,
10-
"disk": 0,
11-
"gpus": 0,
12-
"constraints": [],
13-
"fetch": [],
14-
"storeUrls": [],
15-
"backoffSeconds": 1,
163
"backoffFactor": 1.15,
17-
"maxLaunchDelaySeconds": 3600,
4+
"backoffSeconds": 1,
185
"container": {
6+
"portMappings": [
7+
{
8+
"containerPort": 3000,
9+
"hostPort": 0,
10+
"labels": {
11+
"VIP_0": "/micro-math-service:3000"
12+
},
13+
"protocol": "tcp",
14+
"servicePort": 10101,
15+
"name": "math-service"
16+
}
17+
],
1918
"type": "DOCKER",
2019
"volumes": [],
2120
"docker": {
22-
"image": "mesosplayground/nsc",
23-
"network": "USER",
24-
"portMappings": [
25-
{
26-
"containerPort": 3000,
27-
"hostPort": 0,
28-
"servicePort": 10101,
29-
"protocol": "tcp",
30-
"name": "math-service",
31-
"labels": {
32-
"VIP_0": "/micro-math-service:3000"
33-
}
34-
}
35-
],
36-
"privileged": false,
37-
"parameters": [],
38-
"forcePullImage": false
21+
"image": "mesosplayground/nsc:boron",
22+
"forcePullImage": false,
23+
"privileged": true,
24+
"parameters": []
3925
}
4026
},
27+
"cpus": 0.1,
28+
"disk": 0,
4129
"healthChecks": [
4230
{
4331
"gracePeriodSeconds": 300,
4432
"intervalSeconds": 60,
45-
"timeoutSeconds": 20,
4633
"maxConsecutiveFailures": 3,
4734
"portIndex": 0,
48-
"path": "/act?role=health&cmd=ping&ver=1",
35+
"timeoutSeconds": 20,
36+
"delaySeconds": 15,
4937
"protocol": "MESOS_HTTP",
50-
"delaySeconds": 15
38+
"path": "/act?role=health&cmd=ping&ver=1"
5139
}
5240
],
53-
"readinessChecks": [],
54-
"dependencies": [],
41+
"instances": 1,
42+
"maxLaunchDelaySeconds": 3600,
43+
"mem": 128,
44+
"gpus": 0,
45+
"networks": [
46+
{
47+
"name": "dcos",
48+
"mode": "container"
49+
}
50+
],
51+
"requirePorts": false,
5552
"upgradeStrategy": {
56-
"minimumHealthCapacity": 1,
57-
"maximumOverCapacity": 1
58-
},
59-
"ipAddress": {
60-
"groups": [],
61-
"networkName": "dcos"
53+
"maximumOverCapacity": 1,
54+
"minimumHealthCapacity": 1
6255
},
56+
"killSelection": "YOUNGEST_FIRST",
6357
"unreachableStrategy": {
6458
"inactiveAfterSeconds": 300,
6559
"expungeAfterSeconds": 600
6660
},
67-
"killSelection": "YOUNGEST_FIRST",
68-
"requirePorts": false
61+
"fetch": [
62+
{
63+
"uri": "https://github.com/mesos-playground/MathService/releases/download/2017.09.22-1/bundle.tgz"
64+
}
65+
],
66+
"constraints": []
6967
}

0 commit comments

Comments
 (0)