Scott Baker | 970f24b | 2017-02-13 14:16:40 -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 | image: xosproject/xos-gui |
| 16 | ports: 4000:4000 |
| 17 | |
Matteo Scandolo | 667334f | 2017-02-26 10:58:08 -0800 | [diff] [blame^] | 18 | # UI App Config |
| 19 | /var/www/dist/app.config.js: |
| 20 | type: tosca.nodes.ComponentVolume |
| 21 | properties: |
| 22 | host_path: {{ cord_profile_dir }}/app.config.js |
| 23 | read_only: false |
| 24 | requirements: |
| 25 | - xos: |
| 26 | node: xos-spa-gui |
| 27 | relationship: tosca.relationships.VolumeOfComponent |
| 28 | |
| 29 | # UI Style Config |
| 30 | /var/www/dist/style.config.js: |
| 31 | type: tosca.nodes.ComponentVolume |
| 32 | properties: |
| 33 | host_path: {{ cord_profile_dir }}/style.config.js |
| 34 | read_only: false |
| 35 | requirements: |
| 36 | - xos: |
| 37 | node: xos-spa-gui |
| 38 | relationship: tosca.relationships.VolumeOfComponent |
| 39 | |
Matteo Scandolo | 950da04 | 2017-02-17 20:35:48 -0800 | [diff] [blame] | 40 | gui-to-chameleon: |
| 41 | type: tosca.nodes.ComponentLink |
| 42 | properties: |
| 43 | container: xos_chameleon |
| 44 | alias: xos-chameleon |
| 45 | kind: internal |
| 46 | requirements: |
| 47 | - xos: |
| 48 | node: xos-spa-gui |
| 49 | relationship: tosca.relationships.LinkOfComponent |
| 50 | |
Scott Baker | 970f24b | 2017-02-13 14:16:40 -0800 | [diff] [blame] | 51 | gui-to-gw: |
| 52 | type: tosca.nodes.ComponentLink |
| 53 | properties: |
| 54 | container: xos-rest-gateway |
| 55 | alias: xos-rest-gw |
| 56 | kind: internal |
| 57 | requirements: |
| 58 | - xos: |
| 59 | node: xos-spa-gui |
| 60 | relationship: tosca.relationships.LinkOfComponent |