Skip to content
Snippets Groups Projects
Commit 241f4dc9 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Ubuntu: container image build"

parents 6014af96 e2a01b79
No related branches found
No related tags found
No related merge requests found
...@@ -43,14 +43,16 @@ ...@@ -43,14 +43,16 @@
- kolla_docker_registry_password is not none - kolla_docker_registry_password is not none
- name: Ensure Kolla container images are built - name: Ensure Kolla container images are built
shell: > shell:
set -o pipefail && cmd: >
. {{ kolla_venv }}/bin/activate && set -o pipefail &&
kolla-build \ . {{ kolla_venv }}/bin/activate &&
--config-dir {{ kolla_build_config_path }} \ kolla-build
{% if item.type is defined %}--type {{ item.type }}{% endif %} \ --config-dir {{ kolla_build_config_path }}
{% if kolla_docker_registry is not none %}--registry {{ kolla_docker_registry }}{% endif %} \ {% if item.type is defined %}--type {{ item.type }}{% endif %}
{% if push_images | bool %}--push{% endif %} \ {% if kolla_docker_registry is not none %}--registry {{ kolla_docker_registry }}{% endif %}
{{ item.regexes }} 2>&1 | tee --append {{ kolla_build_log_path }} {% if push_images | bool %}--push{% endif %}
{{ item.regexes }} 2>&1 | tee --append {{ kolla_build_log_path }}
executable: /bin/bash
with_items: "{{ container_image_sets }}" with_items: "{{ container_image_sets }}"
when: item.regexes != '' when: item.regexes != ''
--- ---
- name: Include OS family-specific variables
include_vars: "{{ ansible_os_family }}.yml"
- name: Ensure EPEL repo is installed - name: Ensure EPEL repo is installed
package: package:
name: epel-release name: epel-release
...@@ -10,13 +13,7 @@ ...@@ -10,13 +13,7 @@
- name: Ensure required packages are installed - name: Ensure required packages are installed
package: package:
name: name: "{{ kolla_package_dependencies }}"
- gcc
- libffi-devel
- openssl-devel
- python3-devel
- python3-pip
- python3-virtualenv
state: present state: present
cache_valid_time: "{{ apt_cache_valid_time if ansible_os_family == 'Debian' else omit }}" cache_valid_time: "{{ apt_cache_valid_time if ansible_os_family == 'Debian' else omit }}"
update_cache: "{{ True if ansible_os_family == 'Debian' else omit }}" update_cache: "{{ True if ansible_os_family == 'Debian' else omit }}"
......
---
# List of packages to install.
kolla_package_dependencies:
- gcc
- libffi-dev
- libssl-dev
- python3-dev
- python3-pip
---
# List of packages to install.
kolla_package_dependencies:
- gcc
- libffi-devel
- openssl-devel
- python3-devel
- python3-pip
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment