| # xos-gui-extension-build/tasks/main.yml |
| # Dockerfile.xos-gui-extension-builder |
| |
| # Create a base image with installed deps (to speedup the process) |
| - name: Build xos-gui-extension-builder image |
| docker_image: |
| name: "xosproject/xos-gui-extension-builder" |
| path: "{{ head_cord_dir }}/orchestration/xos-gui/" |
| dockerfile: "Dockerfile.xos-gui-extension-builder" |
| register: "xos-gui-extension-builder" |
| |
| # Build extensions images |
| - name: Build xos-gui-extensions docker images |
| docker_image: |
| name: "xosproject/gui-extension-{{ item.name }}" |
| path: "{{ head_cord_dir }}/{{ item.path }}" |
| pull: false |
| with_items: "{{ enabled_gui_extensions }}" |
| |
| # Compile the TOSCA to onboard and persist extensions |
| - name: Create templated TOSCA to onboard extensions |
| template: |
| src: "{{ item }}.j2" |
| dest: "{{ head_cord_profile_dir }}/{{ item }}" |
| mode: 0644 |
| with_items: |
| - xos-gui-extensions-onboard.yml |
| - xos-gui-extensions.yml |
| |