kolla/docker/murano/murano-api/Dockerfile.j2
chenxing 2faaf37e86 Add the missing murano package files
When enable Murano, kolla-ansible will import the io.murano.applications.zip
file[1]. But Murano container doesn't symlink this file. This patch is
to add the missing link.

[1] https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/murano/tasks/start.yml#L69

Change-Id: Id791fc39e1f5136add7d10db291cbdba59d1c291
Closes-Bug: #1734019
2017-12-05 08:16:21 +00:00

30 lines
1.1 KiB
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}murano-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block murano_api_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
RUN ln -s /var/cache/murano/meta/io.murano.zip /io.murano.zip \
&& ln -s /var/cache/murano/meta/io.murano.applications.zip /io.murano.applications.zip
{% set murano_api_packages = ['openstack-murano-api'] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
RUN ln -s /usr/share/murano-common/io.murano.zip /io.murano.zip \
&& ln -s /var/cache/murano/meta/io.murano.applications.zip /io.murano.applications.zip
{% set murano_api_packages = ['murano-api'] %}
{% endif %}
{{ macros.install_packages(murano_api_packages | customizable("packages")) }}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_murano_extend_start
RUN chmod 755 /usr/local/bin/kolla_murano_extend_start
{% block murano_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER murano