Merge "Added dockerfiles for mistral."

This commit is contained in:
Jenkins 2015-12-30 09:03:13 +00:00 committed by Gerrit Code Review
commit 6fcde0dab1
7 changed files with 57 additions and 2 deletions

View File

@ -0,0 +1,9 @@
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
MAINTAINER {{ maintainer }}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{{ include_footer }}
USER mistral

View File

@ -0,0 +1,8 @@
#!/bin/bash
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
mistral-db-manage --config-file /etc/mistral/mistral.conf upgrade head
exit 0
fi

View File

@ -0,0 +1,21 @@
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% elif install_type == 'source' %}
ADD mistral-base-archive /mistral-base-source
RUN ln -s mistral-base-source/* mistral \
&& useradd --user-group mistral \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install /mistral \
&& mkdir -p /etc/mistral /var/log/mistral /home/mistral \
&& cp -r /mistral/etc/* /etc/mistral/ \
&& chown -R mistral: /etc/mistral /var/log/mistral /home/mistral
{% endif %}
RUN usermod -a -G kolla mistral

View File

@ -0,0 +1,6 @@
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
MAINTAINER {{ maintainer }}
{{ include_footer }}
USER mistral

View File

@ -0,0 +1,6 @@
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
MAINTAINER {{ maintainer }}
{{ include_footer }}
USER mistral

View File

@ -60,7 +60,7 @@
[profiles]
infra = ceph,data,mariadb,haproxy,keepalived,kolla-ansible,memcached,mongodb,openvswitch,rabbitmq,rsyslog
main = cinder,ceilometer,glance,heat,horizon,keystone,neutron,nova,swift
aux = aodh,designate,gnocchi,ironic,magnum,trove,zaqar
aux = aodh,designate,gnocchi,ironic,magnum,mistral,trove,zaqar
default = data,kolla-ansible,glance,haproxy,heat,horizon,keepalived,keystone,memcached,mariadb,neutron,nova,openvswitch,rabbitmq,rsyslog
gate = ceph,cinder,data,dind,glance,haproxy,heat,horizon,keepalived,keystone,kolla-ansible,mariadb,memcached,neutron,nova,openvswitch,rabbitmq,rsyslog
@ -125,6 +125,10 @@ location = http://tarballs.openstack.org/keystone/keystone-master.tar.gz
type = url
location = http://tarballs.openstack.org/magnum/magnum-master.tar.gz
[mistral-base]
type = url
location = http://tarballs.openstack.org/mistral/mistral-master.tar.gz
[murano-base]
type = url
location = http://tarballs.openstack.org/murano/murano-master.tar.gz

View File

@ -42,7 +42,8 @@ class BuildTest(base.BaseTestCase):
excluded_images = ["gnocchi-base",
"murano-base",
"ironic-pxe",
"ironic-discoverd"]
"ironic-discoverd",
"mistral-base"]
failures = 0
for image, result in six.iteritems(bad_results):