This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
/
uri.yml
63 lines (61 loc) · 1.67 KB
/
uri.yml
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
59
60
61
62
name: {{FRAMEWORK_NAME}}
scheduler:
principal: {{FRAMEWORK_PRINCIPAL}}
user: {{FRAMEWORK_USER}}
pods:
hello:
count: {{HELLO_COUNT}}
uris:
- "https://github.com/mesosphere/dcos-commons/blob/master/README.md"
- "https://github.com/mesosphere/dcos-commons/blob/master/docs/generate.sh"
tasks:
server:
goal: RUNNING
cmd: "cat README.md && echo hello >> hello-container-path/output && sleep $SLEEP_DURATION"
cpus: {{HELLO_CPUS}}
memory: {{HELLO_MEM}}
volume:
path: "hello-container-path"
type: ROOT
size: {{HELLO_DISK}}
env:
SLEEP_DURATION: {{SLEEP_DURATION}}
ports:
test:
port: 9999
world:
count: {{WORLD_COUNT}}
resource-sets:
world-resource:
cpus: {{WORLD_CPUS}}
memory: {{WORLD_MEM}}
volume:
path: "world-container-path"
type: ROOT
size: {{WORLD_DISK}}
uris:
- "https://github.com/mesosphere/dcos-commons/blob/master/frameworks/helloworld/README.md"
tasks:
server:
goal: RUNNING
cmd: "cat README.md && echo world >> world-container-path/output && sleep $SLEEP_DURATION"
resource-set: world-resource
env:
SLEEP_DURATION: {{SLEEP_DURATION}}
health-check:
cmd: "stat hello-container-path/output"
interval: 5
grace-period: 30
delay: 0
timeout: 10
max-consecutive-failures: 3
plans:
deploy:
strategy: serial
phases:
hello-deploy:
strategy: parallel
pod: hello
world-deploy:
strategy: parallel
pod: world