blob: 05baa566d96b3f5f3071011a0122b5a0e8bdb4bc [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:
15 # command: cd /var/www; BRAND=opencloud npm run build
Matteo Scandoloa317b872017-01-10 12:02:41 -080016 image: xosproject/xos-gui
17 ports: 4000:4000
Matteo Scandolo622756f2017-01-17 16:33:07 -080018
19 # 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
Matteo Scandoloa317b872017-01-10 12:02:41 -080029
30 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