Andy Bavier | a6cffe1 | 2017-03-15 17:33:42 -0400 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Onboard xos-sample-gui-extension |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | |
| 11 | # UI Extensions |
| 12 | {% for ext in enabled_gui_extensions %} |
| 13 | gui-extensions-{{ext.name}}: |
| 14 | type: tosca.nodes.Component |
| 15 | properties: |
| 16 | image: {{ deploy_docker_registry }}xosproject/gui-extension-{{ ext.name }}:{{ deploy_docker_tag }} |
| 17 | command: npm run build |
| 18 | |
| 19 | gui-extensions-store-{{ ext.name }}: |
| 20 | type: tosca.nodes.ComponentVolumeContainer |
| 21 | properties: |
| 22 | container: gui-extensions-store |
| 23 | requirements: |
| 24 | - xos: |
| 25 | node: gui-extensions-{{ext.name}} |
| 26 | relationship: tosca.relationships.VolumeContainerOfComponent |
| 27 | {% endfor %} |
| 28 | |