Customizations for murano
This patchset contains customization of Dockerfiles of murano containers Change-Id: I5443c76627d700652a883409dce34a1511f50728 Partially-implements: blueprint third-party-plugin-support
This commit is contained in:
parent
5a21032fb0
commit
0ec7218b19
@ -1,25 +1,23 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}murano-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}murano-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set murano_api_packages = ['openstack-murano-api'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-murano-api \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set murano_api_packages = ['murano-api'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
murano-api \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(murano_api_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_murano_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_murano_extend_start
|
||||||
RUN chmod 755 /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 %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
USER murano
|
USER murano
|
||||||
|
@ -1,20 +1,18 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set murano_base_packages = ['openstack-murano-common'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-murano-common \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set murano_base_packages = ['murano-common'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
murano-common \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(murano_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD murano-base-archive /murano-base-source
|
ADD murano-base-archive /murano-base-source
|
||||||
@ -32,3 +30,6 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|||||||
RUN usermod -a -G kolla murano \
|
RUN usermod -a -G kolla murano \
|
||||||
&& touch /usr/local/bin/kolla_murano_extend_start \
|
&& touch /usr/local/bin/kolla_murano_extend_start \
|
||||||
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_murano_extend_start
|
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_murano_extend_start
|
||||||
|
|
||||||
|
{% block murano_base_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}murano-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}murano-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set murano_engine_packages = ['openstack-murano-engine'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-murano-engine \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set murano_engine_packages = ['murano-engine'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
murano-engine \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(murano_engine_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% block murano_engine_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
USER murano
|
USER murano
|
||||||
|
Loading…
x
Reference in New Issue
Block a user