Matteo Scandolo | bb11ab5 | 2017-02-02 12:10:49 -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 | no-create: true |
| 16 | no-update: true |
| 17 | no-delete: true |
| 18 | |
| 19 | # UI Extension Container |
| 20 | xos-sample-gui-extension: |
| 21 | type: tosca.nodes.Component |
| 22 | properties: |
| 23 | image: xosproject/xos-sample-gui-extension |
| 24 | ports: 4001:4000 |
| 25 | # extra: '["xos-sample-gui-extension:4001/spa/vendor.js", "xos-sample-gui-extension:4001/spa/app.js"]' |
| 26 | extra: '["http://xos.dev:4001/spa/vendor.js", "http://xos.dev:4001/spa/app.js"]' |
| 27 | |
| 28 | gui-to-extension: |
| 29 | type: tosca.nodes.ComponentLink |
| 30 | properties: |
| 31 | container: xos-sample-gui-extension |
| 32 | alias: xos-sample-gui-extension |
| 33 | kind: internal |
| 34 | requirements: |
| 35 | - xos: |
| 36 | node: xos-spa-gui |
| 37 | relationship: tosca.relationships.LinkOfComponent |