Merge "Added dockerfiles for mistral."
This commit is contained in:
commit
6fcde0dab1
9
docker/mistral/mistral-api/Dockerfile.j2
Normal file
9
docker/mistral/mistral-api/Dockerfile.j2
Normal 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
|
8
docker/mistral/mistral-api/extend_start.sh
Normal file
8
docker/mistral/mistral-api/extend_start.sh
Normal 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
|
21
docker/mistral/mistral-base/Dockerfile.j2
Normal file
21
docker/mistral/mistral-base/Dockerfile.j2
Normal 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
|
6
docker/mistral/mistral-engine/Dockerfile.j2
Normal file
6
docker/mistral/mistral-engine/Dockerfile.j2
Normal file
@ -0,0 +1,6 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER mistral
|
6
docker/mistral/mistral-executor/Dockerfile.j2
Normal file
6
docker/mistral/mistral-executor/Dockerfile.j2
Normal file
@ -0,0 +1,6 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER mistral
|
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user