blob: b337d4f29b83bab08240435a6b455cc06d654d0b [file] [log] [blame]
Matteo Scandolo6050fda2017-02-16 13:01:52 -08001# 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 Williamsc989f262017-05-11 13:02:59 -07008 path: "{{ head_cord_dir }}/orchestration/xos-gui/"
Matteo Scandolo6050fda2017-02-16 13:01:52 -08009 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 Williamsc989f262017-05-11 13:02:59 -070016 path: "{{ head_cord_dir }}/{{ item.path }}"
Matteo Scandolo6050fda2017-02-16 13:01:52 -080017 pull: false
18 with_items: "{{ enabled_gui_extensions }}"
19
Zack Williamsc989f262017-05-11 13:02:59 -070020# Compile the TOSCA to onboard and persist extensions
Matteo Scandolo6050fda2017-02-16 13:01:52 -080021- name: Create templated TOSCA to onboard extensions
22 template:
23 src: "{{ item }}.j2"
Zack Williamsc989f262017-05-11 13:02:59 -070024 dest: "{{ head_cord_profile_dir }}/{{ item }}"
Matteo Scandolo6050fda2017-02-16 13:01:52 -080025 mode: 0644
26 with_items:
27 - xos-gui-extensions-onboard.yml
Matteo Scandolo6050fda2017-02-16 13:01:52 -080028 - xos-gui-extensions.yml
Zack Williamsc989f262017-05-11 13:02:59 -070029