Skip to content

Commit 017e63c

Browse files
committed
Updated package to use artifacts and output a common output name.
1 parent 2dca695 commit 017e63c

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

Gruntfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const manifest = [
44
];
55

66
const dist = 'dist';
7-
const bundle = dist + '/crontask.tgz';
7+
const bundle = dist + '/bundle.tgz';
88

99
module.exports = function(grunt) {
1010

@@ -33,7 +33,10 @@ module.exports = function(grunt) {
3333

3434
compress: {
3535
dist: {
36-
options: { archive: bundle },
36+
options: {
37+
archive: bundle,
38+
mode: "tgz"
39+
},
3740
files: [{
3841
expand: true,
3942
//dot: true,

job-service-description.json

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,41 @@
11
{
22
"id": "a-cron-task",
3-
"args": [
4-
"-u",
5-
"https://github.com/mesos-playground/crontask/releases/download/2017.09.16-1/crontask.tgz"
6-
],
3+
"description": "A scheduled task",
4+
"labels": {},
75
"run": {
86
"cpus": 0.01,
97
"mem": 128,
108
"disk": 0,
9+
"cmd": "cd $MESOS_SANDBOX\nnpm start\n",
10+
"env": {},
11+
"placement": {
12+
"constraints": []
13+
},
14+
"artifacts": [
15+
{
16+
"uri": "https://github.com/mesos-playground/crontask/releases/download/2017.09.16-1/bundle.tgz",
17+
"extract": true,
18+
"executable": false,
19+
"cache": false
20+
}
21+
],
22+
"maxLaunchDelay": 3600,
1123
"docker": {
12-
"image": "mesosplayground/nsc"
24+
"image": "node:boron"
25+
},
26+
"volumes": [],
27+
"restart": {
28+
"policy": "NEVER"
1329
}
1430
},
1531
"schedules": [
1632
{
1733
"id": "default",
18-
"enabled": true,
34+
"enabled": false,
1935
"cron": "*/5 * * * *",
2036
"timezone": "America/Boise",
2137
"concurrencyPolicy": "ALLOW",
22-
"startingDeadlineSeconds": 60
38+
"startingDeadlineSeconds": 600
2339
}
24-
],
25-
"description": "a basic cron task"
40+
]
2641
}

0 commit comments

Comments
 (0)