blob: 877f44410b3fccb153165a018a6a525605729cba [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:
Andy Baviera6cffe12017-03-15 17:33:42 -040015 image: {{ deploy_docker_registry }}xosproject/xos-gui:{{ deploy_docker_tag }}
Scott Baker970f24b2017-02-13 14:16:40 -080016 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 Scandolo6050fda2017-02-16 13:01:52 -080040 # Mounting volume from volume container
41 gui-extensions-store:
42 type: tosca.nodes.ComponentVolumeContainer
43 properties:
44 container: gui-extensions-store
45 requirements:
46 - xos:
47 node: xos-spa-gui
48 relationship: tosca.relationships.VolumeContainerOfComponent
49
Matteo Scandolo950da042017-02-17 20:35:48 -080050 gui-to-chameleon:
51 type: tosca.nodes.ComponentLink
52 properties:
53 container: xos_chameleon
54 alias: xos-chameleon
55 kind: internal
56 requirements:
57 - xos:
58 node: xos-spa-gui
59 relationship: tosca.relationships.LinkOfComponent
Andy Baviera6cffe12017-03-15 17:33:42 -040060
Scott Baker970f24b2017-02-13 14:16:40 -080061 gui-to-gw:
62 type: tosca.nodes.ComponentLink
63 properties:
64 container: xos-rest-gateway
65 alias: xos-rest-gw
66 kind: internal
67 requirements:
68 - xos:
69 node: xos-spa-gui
Andy Baviera6cffe12017-03-15 17:33:42 -040070 relationship: tosca.relationships.LinkOfComponent