Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 1 | # xos-gui-extension-build/tasks/main.yml |
| 2 | # Dockerfile.xos-gui-extension-builder |
| 3 | |
| 4 | # Create a base image with installed deps (to speedup the process) |
| 5 | - name: Build xos-gui-extension-builder image |
| 6 | docker_image: |
| 7 | name: "xosproject/xos-gui-extension-builder" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 8 | path: "{{ head_cord_dir }}/orchestration/xos-gui/" |
Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 9 | dockerfile: "Dockerfile.xos-gui-extension-builder" |
| 10 | register: "xos-gui-extension-builder" |
| 11 | |
| 12 | # Build extensions images |
| 13 | - name: Build xos-gui-extensions docker images |
| 14 | docker_image: |
| 15 | name: "xosproject/gui-extension-{{ item.name }}" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 16 | path: "{{ head_cord_dir }}/{{ item.path }}" |
Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 17 | pull: false |
| 18 | with_items: "{{ enabled_gui_extensions }}" |
| 19 | |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 20 | # Compile the TOSCA to onboard and persist extensions |
Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 21 | - name: Create templated TOSCA to onboard extensions |
| 22 | template: |
| 23 | src: "{{ item }}.j2" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 24 | dest: "{{ head_cord_profile_dir }}/{{ item }}" |
Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 25 | mode: 0644 |
| 26 | with_items: |
| 27 | - xos-gui-extensions-onboard.yml |
Matteo Scandolo | 6050fda | 2017-02-16 13:01:52 -0800 | [diff] [blame] | 28 | - xos-gui-extensions.yml |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 29 | |