
We want to have one flow for building Docker images of all Monasca components. Every component should have `docker` folder and in this folder file with name `build_image.sh` should be placed. By having one global Zuul we could force this convention. Also this is good for avoiding code duplication. Remove timeouts. They was unnecessary big. Story: 2001694 Task: 28994 Change-Id: Iee7de1d8e873817a3b6f72e7ecc815bd8d6eb705
22 lines
666 B
YAML
22 lines
666 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Run node setup script
|
|
shell: "{{ zuul.project.src_dir }}/playbooks/setup_ci.sh"
|
|
become: true
|
|
|
|
- name: Changing permission of Docker socket to 666
|
|
file:
|
|
path: /run/docker.sock
|
|
mode: 666
|
|
become: true
|
|
|
|
- name: Build monasca-base Docker image
|
|
shell: "{{ zuul.project.src_dir }}/docker/build_base_image.sh"
|
|
environment:
|
|
MONASCA_COMMON_TAG: "{{ zuul.tag if zuul.pipeline == 'release' else zuul.branch | basename }}"
|
|
become: true
|
|
|
|
- name: List images
|
|
shell: "docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep monasca"
|