blob: e2dd0d3e2292f779e21ac3fa7578ba691991d8f0 [file] [log] [blame]
Scott Baker970f24b2017-02-13 14:16:40 -08001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Onboard the exampleservice
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10
11 # UI Container
12 xos-spa-gui:
13 type: tosca.nodes.Component
14 properties:
15 image: xosproject/xos-gui
16 ports: 4000:4000
17
Matteo Scandolo667334f2017-02-26 10:58:08 -080018 # UI App Config
19 /var/www/dist/app.config.js:
20 type: tosca.nodes.ComponentVolume
21 properties:
22 host_path: {{ cord_profile_dir }}/app.config.js
23 read_only: false
24 requirements:
25 - xos:
26 node: xos-spa-gui
27 relationship: tosca.relationships.VolumeOfComponent
28
29 # UI Style Config
30 /var/www/dist/style.config.js:
31 type: tosca.nodes.ComponentVolume
32 properties:
33 host_path: {{ cord_profile_dir }}/style.config.js
34 read_only: false
35 requirements:
36 - xos:
37 node: xos-spa-gui
38 relationship: tosca.relationships.VolumeOfComponent
39
Matteo Scandolo950da042017-02-17 20:35:48 -080040 gui-to-chameleon:
41 type: tosca.nodes.ComponentLink
42 properties:
43 container: xos_chameleon
44 alias: xos-chameleon
45 kind: internal
46 requirements:
47 - xos:
48 node: xos-spa-gui
49 relationship: tosca.relationships.LinkOfComponent
50
Scott Baker970f24b2017-02-13 14:16:40 -080051 gui-to-gw:
52 type: tosca.nodes.ComponentLink
53 properties:
54 container: xos-rest-gateway
55 alias: xos-rest-gw
56 kind: internal
57 requirements:
58 - xos:
59 node: xos-spa-gui
60 relationship: tosca.relationships.LinkOfComponent