-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlgiommi-custom-type.yml
43 lines (41 loc) · 1.56 KB
/
lgiommi-custom-type.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
tosca_definitions_version: tosca_simple_yaml_1_2
imports:
- https://raw.githubusercontent.com/dodas-ts/dodas-apps/master/tosca-types/dodas_types.yml
node_types:
tosca.nodes.DODAS.MLaaS:
derived_from: tosca.nodes.SoftwareComponent
properties:
run:
type: string
default: "true"
work_dir:
type: string
default: "/tmp/work_dir"
default_container_name:
type: string
default: "docker"
default_container_image:
type: string
default: "felixfelicislp/mlaas_cloud:mlaas_test_2"
default_container_command:
type: string
default: "--files=files_test.txt --labels=labels_test.txt --model=keras_model.py --params=params_test.json"
role_name:
type: string
required: false
default: mlaas_cloud
artifacts:
ml_role:
file: git+https://github.com/lgiommi/mlaas_cloud
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
start:
implementation: https://raw.githubusercontent.com/dodas-ts/dodas-apps/master/tosca-types/dodas_artifacts/ansible.yaml
inputs:
role_name: { get_property: [ SELF, role_name ] }
run: { get_property: [ SELF, run ] }
work_dir: { get_property : [SELF, work_dir]}
default_container_name: { get_property: [ SELF, default_container_name ] }
default_container_image: { get_property: [ SELF, default_container_image ] }
default_container_command: { get_property: [ SELF, default_container_command ] }