blob: 5ae4ddd1558cb9fb83fe5bf92d60cd7ed99c7567 [file] [log] [blame]
Matteo Scandoloa317b872017-01-10 12:02:41 -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:
Matteo Scandoloa317b872017-01-10 12:02:41 -080015 name: xos-spa-gui
16 image: xosproject/xos-gui
17 ports: 4000:4000
18
Matteo Scandolo622756f2017-01-17 16:33:07 -080019 # UI Style Config
20 /var/www/dist/style.config.js:
21 type: tosca.nodes.ComponentVolume
22 properties:
23 host_path: { path_join: [ SELF, CONFIG_DIR, ./ui-style-config.js, ENV_VAR ] }
24 read_only: false
25 requirements:
26 - xos:
27 node: xos-spa-gui
28 relationship: tosca.relationships.VolumeOfComponent
29
Matteo Scandoloa317b872017-01-10 12:02:41 -080030 gui-to-gw:
31 type: tosca.nodes.ComponentLink
32 properties:
33 container: xos-rest-gateway
34 alias: xos-rest-gw
35 kind: internal
36 requirements:
37 - xos:
38 node: xos-spa-gui
39 relationship: tosca.relationships.LinkOfComponent