Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Onboard the exampleservice |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_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=cord npm run build |
| 16 | name: xos-spa-gui |
| 17 | image: xosproject/xos-gui |
| 18 | ports: 4000:4000 |
| 19 | |
| 20 | gui-to-gw: |
| 21 | type: tosca.nodes.ComponentLink |
| 22 | properties: |
| 23 | container: xos-rest-gateway |
| 24 | alias: xos-rest-gw |
| 25 | kind: internal |
| 26 | requirements: |
| 27 | - xos: |
| 28 | node: xos-spa-gui |
| 29 | relationship: tosca.relationships.LinkOfComponent |