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 | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame^] | 40 | # Mounting volume from volume container |
| 41 | gui-extensions-store: |
| 42 | type: tosca.nodes.ComponentVolumeContainer |
| 43 | properties: |
| 44 | container: gui-extensions-store |
| 45 | requirements: |
| 46 | - xos: |
| 47 | node: xos-spa-gui |
| 48 | relationship: tosca.relationships.VolumeContainerOfComponent |
| 49 | |
Matteo Scandolo | 950da04 | 2017-02-17 20:35:48 -0800 | [diff] [blame] | 50 | gui-to-chameleon: |
| 51 | type: tosca.nodes.ComponentLink |
| 52 | properties: |
| 53 | container: xos_chameleon |
| 54 | alias: xos-chameleon |
| 55 | kind: internal |
| 56 | requirements: |
| 57 | - xos: |
| 58 | node: xos-spa-gui |
| 59 | relationship: tosca.relationships.LinkOfComponent |
| 60 | |
Scott Baker | 970f24b | 2017-02-13 14:16:40 -0800 | [diff] [blame] | 61 | gui-to-gw: |
| 62 | type: tosca.nodes.ComponentLink |
| 63 | properties: |
| 64 | container: xos-rest-gateway |
| 65 | alias: xos-rest-gw |
| 66 | kind: internal |
| 67 | requirements: |
| 68 | - xos: |
| 69 | node: xos-spa-gui |
| 70 | relationship: tosca.relationships.LinkOfComponent |