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