Skip to content

Commit 681039c

Browse files
Fixes identation
1 parent 9d956be commit 681039c

File tree

1 file changed

+142
-99
lines changed

1 file changed

+142
-99
lines changed

amber/amber_job_onedata.yaml

+142-99
Original file line numberDiff line numberDiff line change
@@ -7,106 +7,149 @@ description: >
77
TOSCA examples for specifying a Chronos Job that runs an application using Onedata storage.
88
99
topology_template:
10-
inputs:
11-
input_onedata_token:
12-
type: string
13-
description: User token required to mount the user's INPUT Onedata space
14-
required: yes
15-
default: ""
16-
17-
output_onedata_token:
18-
type: string
19-
description: User token required to mount the user's OUTPUT Onedata space. It can be the same as the input token
20-
required: yes
21-
default: ""
22-
23-
input_onedata_providers:
24-
type: string
25-
description: csv list of favorite Onedata providers to be used to mount the Input Onedata space. If not provided, data locality algo will be applied.
26-
default: ''
27-
required: no
28-
29-
output_onedata_providers:
30-
type: string
31-
description: csv list of favorite Onedata providers to be used to mount the Output Onedata space. If not provided, the same provider(s) used to mount the input space will be used.
32-
default: ''
33-
required: no
34-
35-
input_onedata_space:
36-
type: string
37-
description: Onedata space where the application input data are stored
38-
required: yes
39-
default: ""
40-
41-
input_path:
42-
type: string
43-
description: Path to the input data inside the Input Onedata space
44-
required: yes
45-
default: ""
46-
47-
output_onedata_space:
48-
type: string
49-
description: Onedata space where the application output will be stored. It can be the same as the Input Onedata space
50-
required: yes
51-
default: ""
10+
inputs:
11+
12+
input_onedata_token:
13+
type: string
14+
description: User token required to mount the user's INPUT Onedata space
15+
required: yes
16+
17+
output_onedata_token:
18+
type: string
19+
description: User token required to mount the user's OUTPUT Onedata space. It can be the same as the input token
20+
required: yes
21+
22+
input_onedata_providers:
23+
type: string
24+
description: csv list of favorite Onedata providers to be used to mount the Input Onedata space. If not provided, data locality algo will be applied.
25+
default: ''
26+
required: no
27+
28+
output_onedata_providers:
29+
type: string
30+
description: csv list of favorite Onedata providers to be used to mount the Output Onedata space. If not provided, the same provider(s) used to mount the input space will be used.
31+
default: ''
32+
required: no
33+
34+
input_onedata_space:
35+
type: string
36+
description: Onedata space where the application input data are stored
37+
required: yes
38+
39+
input_path:
40+
type: string
41+
description: Path to the input data inside the Input Onedata space
42+
required: yes
43+
44+
output_onedata_space:
45+
type: string
46+
description: Onedata space where the application output will be stored. It can be the same as the Input Onedata space
47+
required: yes
48+
49+
50+
output_filenames:
51+
type: string
52+
description: csv list of filenames generated by the application run
53+
default: ''
54+
required: yes
55+
56+
cpus:
57+
type: float
58+
description: Amount of CPUs for this job
59+
required: yes
60+
61+
mem:
62+
type: scalar-unit.size
63+
description: Amount of Memory for this job
64+
required: yes
65+
66+
67+
node_templates:
68+
5269

53-
output_path:
54-
type: string
55-
description: Path to the output data inside the Output Onedata space
56-
required: yes
57-
default: ""
70+
chronos_job1:
71+
type: tosca.nodes.indigo.Container.Application.Docker.Chronos
72+
properties:
73+
schedule: 'R0/2015-12-25T17:22:00Z/PT1M'
74+
description: 'Execute Application'
75+
command: 'cd $MESOS_SANDBOX && wget https://raw.githubusercontent.com/maricaantonacci/e-RSH/master/scripts/Lifewatch/lifewatch_run.sh && /bin/bash lifewatch_run.sh'
76+
uris: []
77+
retries: 3
78+
environment_variables:
79+
TEMP: 'TEMP_1'
80+
INPUT_ONEDATA_TOKEN: { get_input: input_onedata_token }
81+
OUTPUT_ONEDATA_TOKEN: { get_input: output_onedata_token }
82+
INPUT_ONEDATA_PROVIDERS: { get_input: output_onedata_providers }
83+
OUTPUT_ONEDATA_PROVIDERS: { get_input: output_onedata_providers }
84+
INPUT_ONEDATA_SPACE: { get_input: input_onedata_space }
85+
INPUT_PATH: { get_input: input_path }
86+
OUTPUT_ONEDATA_SPACE: { get_input: output_onedata_space }
87+
OUTPUT_PATH: 'OUTPUT_PATH_1'
88+
OUTPUT_FILENAMES: { get_input: output_filenames }
89+
artifacts:
90+
image:
91+
file: 'marica/barridocker-oneclient' #TO BE MOVED UNDER INDIGO-DC
92+
type: tosca.artifacts.Deployment.Image.Container.Docker
93+
requirements:
94+
- host: docker_runtime
5895

59-
output_filenames:
60-
type: string
61-
description: csv list of filenames generated by the application run
62-
default: ''
63-
required: yes
96+
chronos_job2:
97+
type: tosca.nodes.indigo.Container.Application.Docker.Chronos
98+
properties:
99+
schedule: 'R0/2015-12-25T17:22:00Z/PT1M'
100+
description: 'Execute Application'
101+
command: 'cd $MESOS_SANDBOX && wget https://raw.githubusercontent.com/maricaantonacci/e-RSH/master/scripts/Lifewatch/lifewatch_run.sh && /bin/bash lifewatch_run.sh'
102+
uris: []
103+
retries: 3
104+
environment_variables:
105+
TEMP: 'TEMP_2'
106+
INPUT_ONEDATA_TOKEN: { get_input: input_onedata_token }
107+
OUTPUT_ONEDATA_TOKEN: { get_input: output_onedata_token }
108+
INPUT_ONEDATA_PROVIDERS: { get_input: output_onedata_providers }
109+
OUTPUT_ONEDATA_PROVIDERS: { get_input: output_onedata_providers }
110+
INPUT_ONEDATA_SPACE: { get_input: input_onedata_space }
111+
INPUT_PATH: { get_input: input_path }
112+
OUTPUT_ONEDATA_SPACE: { get_input: output_onedata_space }
113+
OUTPUT_PATH: 'OUTPUT_PATH_2'
114+
OUTPUT_FILENAMES: { get_input: output_filenames }
115+
artifacts:
116+
image:
117+
file: 'marica/barridocker-oneclient' #TO BE MOVED UNDER INDIGO-DC
118+
type: tosca.artifacts.Deployment.Image.Container.Docker
119+
requirements:
120+
- host: docker_runtime
121+
122+
chronos_job3:
123+
type: tosca.nodes.indigo.Container.Application.Docker.Chronos
124+
properties:
125+
schedule: 'R0/2015-12-25T17:22:00Z/PT1M'
126+
description: 'Execute Application'
127+
command: 'cd $MESOS_SANDBOX && wget https://raw.githubusercontent.com/maricaantonacci/e-RSH/master/scripts/Lifewatch/lifewatch_run.sh && /bin/bash lifewatch_run.sh'
128+
uris: []
129+
retries: 3
130+
environment_variables:
131+
TEMP: 'TEMP_3'
132+
INPUT_ONEDATA_TOKEN: { get_input: input_onedata_token }
133+
OUTPUT_ONEDATA_TOKEN: { get_input: output_onedata_token }
134+
INPUT_ONEDATA_PROVIDERS: { get_input: output_onedata_providers }
135+
OUTPUT_ONEDATA_PROVIDERS: { get_input: output_onedata_providers }
136+
INPUT_ONEDATA_SPACE: { get_input: input_onedata_space }
137+
INPUT_PATH: { get_input: input_path }
138+
OUTPUT_ONEDATA_SPACE: { get_input: output_onedata_space }
139+
OUTPUT_PATH: 'OUTPUT_PATH_3'
140+
OUTPUT_FILENAMES: { get_input: output_filenames }
141+
artifacts:
142+
image:
143+
file: 'marica/barridocker-oneclient' #TO BE MOVED UNDER INDIGO-DC
144+
type: tosca.artifacts.Deployment.Image.Container.Docker
145+
requirements:
146+
- host: docker_runtime
64147

65-
cpus:
66-
type: float
67-
description: Amount of CPUs for this job
68-
required: yes
69-
default: 1.0
70148

71-
mem:
72-
type: scalar-unit.size
73-
description: Amount of Memory for this job
74-
required: yes
75-
default: 1 GB
76-
77-
node_templates:
78-
chronos_job:
79-
type: tosca.nodes.indigo.Container.Application.Docker.Chronos
80-
properties:
81-
schedule: 'R0/2015-12-25T17:22:00Z/PT1M'
82-
description: 'Execute Application'
83-
command: 'cd $MESOS_SANDBOX && wget https://raw.githubusercontent.com/indigo-dc/tosca-templates/add_chronos_templates/amber/scripts/amber_run.sh && /bin/bash amber_run.sh'
84-
uris: []
85-
retries: 3
86-
environment_variables:
87-
INPUT_ONEDATA_TOKEN: { get_input: input_onedata_token }
88-
OUTPUT_ONEDATA_TOKEN: { get_input: output_onedata_token }
89-
INPUT_ONEDATA_PROVIDERS: 'INPUT_ONEDATA_PROVIDERS_TO_BE_SET_BY_THE_ORCHESTRATOR'
90-
OUTPUT_ONEDATA_PROVIDERS: 'OUTPUT_ONEDATA_PROVIDERS_TO_BE_SET_BY_THE_ORCHESTRATOR'
91-
INPUT_ONEDATA_SPACE: { get_input: input_onedata_space }
92-
INPUT_PATH: { get_input: input_path }
93-
OUTPUT_ONEDATA_SPACE: { get_input: output_onedata_space }
94-
OUTPUT_PATH: { get_input: output_path }
95-
OUTPUT_FILENAMES: { get_input: output_filenames }
96-
artifacts:
97-
image:
98-
file: indigodatacloudapps/ambertools-oneclient:latest
99-
type: tosca.artifacts.Deployment.Image.Container.Docker
100-
requirements:
101-
- host: docker_runtime1
102-
103-
104-
docker_runtime1:
105-
type: tosca.nodes.indigo.Container.Runtime.Docker
106-
capabilities:
107-
host:
108-
properties:
109-
num_cpus: { get_input: cpus }
110-
mem_size: { get_input: mem }
111-
112-
149+
docker_runtime:
150+
type: tosca.nodes.indigo.Container.Runtime.Docker
151+
capabilities:
152+
host:
153+
properties:
154+
num_cpus: { get_input: cpus }
155+
mem_size: { get_input: mem }

0 commit comments

Comments
 (0)