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=opencloud npm run build |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 16 | image: xosproject/xos-gui |
| 17 | ports: 4000:4000 |
Matteo Scandolo | 622756f | 2017-01-17 16:33:07 -0800 | [diff] [blame] | 18 | |
| 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 Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 29 | |
| 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 |