Add Mistral Binary Containers

Added mistral binary containers for rpm based distros.

Change-Id: Ic2de5ee191a4ed3e2ef3083fb4bb480096e9463f
Partially-implements: bp add-mistral-binary
This commit is contained in:
Swapnil Kulkarni (coolsvap) 2016-04-12 14:44:38 +05:30
parent 3f9f267a42
commit 240ba96af2
5 changed files with 41 additions and 2 deletions

View File

@ -1,6 +1,17 @@
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-mistral-api \
&& yum clean all
{% endif %}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_mistral_extend_start
RUN chmod 755 /usr/local/bin/kolla_mistral_extend_start

View File

@ -3,9 +3,19 @@ MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-mistral-common \
&& yum clean all
{% elif base_distro in ['ubuntu'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{% elif install_type == 'source' %}
ADD mistral-base-archive /mistral-base-source

View File

@ -1,6 +1,16 @@
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-mistral-engine \
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER mistral

View File

@ -1,6 +1,16 @@
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-mistral-executor \
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER mistral

View File

@ -68,7 +68,6 @@ class BuildTest(object):
class BuildTestCentosBinary(BuildTest, base.BaseTestCase):
excluded_images = ["murano-base",
"mistral-base",
"murano-base"]
def setUp(self):
@ -110,7 +109,6 @@ class BuildTestUbuntuSource(BuildTest, base.BaseTestCase):
class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase):
excluded_images = ["murano-base",
"mistral-base",
"murano-base"]
def setUp(self):