Add qemu-img into glance api image

Change-Id: I564fd3cdd1c7e48657270510a195e397c7812817
Closes-Bug: #1646535
This commit is contained in:
Jeffrey Zhang 2016-12-02 00:04:11 +08:00 committed by Jeffrey Zhang
parent 8b57bb070e
commit f49afa1b66

View File

@ -3,6 +3,16 @@ MAINTAINER {{ maintainer }}
{% block glance_api_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set glance_api_packages = ['qemu-img'] %}
{% elif base_distro in ['ubuntu'] %}
{% set glance_api_packages = ['qemu-utils'] %}
{% endif %}
{{ macros.install_packages(glance_api_packages | customizable("packages")) }}
COPY extend_start.sh /usr/local/bin/kolla_glance_extend_start
RUN chmod 755 /usr/local/bin/kolla_glance_extend_start