Skip to content
Snippets Groups Projects
Commit a7c3851d authored by Swapnil Kulkarni (coolsvap)'s avatar Swapnil Kulkarni (coolsvap)
Browse files

Customizations for mistral

This patchset contains customization of Dockerfiles
of mistral containers

Change-Id: I0ad1e9aa80b563da17275268ca90b618da350b06
Partially-implements: blueprint third-party-plugin-support
parent 0ff90a6f
No related branches found
No related tags found
No related merge requests found
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}mistral-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 mistral_api_packages = ['openstack-mistral-api'] %}
RUN yum -y install \
openstack-mistral-api \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set mistral_api_packages = ['mistral-api'] %}
RUN apt-get -y install --no-install-recommends \
mistral-api \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(mistral_api_packages | customizable("packages")) }}
{% endif %} {% endif %}
COPY extend_start.sh /usr/local/bin/kolla_mistral_extend_start COPY extend_start.sh /usr/local/bin/kolla_mistral_extend_start
RUN chmod 755 /usr/local/bin/kolla_mistral_extend_start RUN chmod 755 /usr/local/bin/kolla_mistral_extend_start
{% block mistral_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
USER mistral USER mistral
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %} {% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-mistral-common \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% if install_type == 'binary' %}
RUN apt-get -y install --no-install-recommends \
mistral-common \
&& apt-get clean
{% endif %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% set mistral_base_packages = ['openstack-mistral-common'] %}
{% elif base_distro in ['ubuntu'] %}
{% set mistral_base_packages = ['mistral-common'] %}
{% endif %}
RUN {{ macros.install_packages(mistral_base_packages | customizable("packages")) }}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
......
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}mistral-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 mistral_engine_packages = ['openstack-mistral-engine'] %}
RUN yum -y install \
openstack-mistral-engine \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set mistral_engine_packages = ['mistral-engine'] %}
RUN apt-get -y install --no-install-recommends \
mistral-engine \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(mistral_engine_packages | customizable("packages")) }}
{% endif %} {% endif %}
{% block mistral_engine_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
......
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}mistral-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 mistral_executor_packages = ['openstack-mistral-executor'] %}
RUN yum -y install \
openstack-mistral-executor \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set mistral_executor_packages = ['mistral-executor'] %}
RUN apt-get -y install --no-install-recommends \
mistral-executor \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(mistral_executor_packages | customizable("packages")) }}
{% endif %} {% endif %}
{% block mistral_executor_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
......
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