blob: 51be9267ac6dd9e0895f2d47fbc19d559a037c18 [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"
8 path: "{{ cord_dir }}/orchestration/xos-gui/"
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 }}"
16 path: "{{ cord_dir }}/{{ item.path }}"
17 pull: false
18 with_items: "{{ enabled_gui_extensions }}"
19
20# Compile the TOSCA to onboard extensions
21- name: Create templated TOSCA to onboard extensions
22 template:
23 src: "{{ item }}.j2"
24 dest: "{{ cord_profile_dir }}/{{ item }}"
25 mode: 0644
26 with_items:
27 - xos-gui-extensions-onboard.yml
28
29# Compile the TOSCA to persist extensions
30- name: Create templated TOSCA to persist extensions
31 template:
32 src: "{{ item }}.j2"
33 dest: "{{ cord_profile_dir }}/{{ item }}"
34 mode: 0644
35 with_items:
36 - xos-gui-extensions.yml