blob: 4a8c59e3d142a0c42f19cb4aacbdd7983e42c03b [file] [log] [blame]
Pingping Lind5fe9f22017-05-04 18:16:54 -07001tosca_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 # command: cd /var/www; BRAND=opencloud npm run build
16 name: xos-spa-gui
17 image: xosproject/xos-gui
18 ports: 4000:4000
19
20 # UI Style Config
21 /var/www/dist/style.config.js:
22 type: tosca.nodes.ComponentVolume
23 properties:
24 host_path: { path_join: [ SELF, CONFIG_DIR, ./ui-style-config.js, ENV_VAR ] }
25 read_only: false
26 requirements:
27 - xos:
28 node: xos-spa-gui
29 relationship: tosca.relationships.VolumeOfComponent
30
31 gui-to-gw:
32 type: tosca.nodes.ComponentLink
33 properties:
34 container: xos-rest-gateway
35 alias: xos-rest-gw
36 kind: internal
37 requirements:
38 - xos:
39 node: xos-spa-gui
40 relationship: tosca.relationships.LinkOfComponent