kolla-ansible/docker/mistral/mistral-base/Dockerfile.j2
hparekh f36b5aef71 Added dockerfiles for mistral.
Change-Id: Ie74a91dccf654da9305722d14af2f0a893dbaaff
Partially-implements: blueprint enable-mistral-container
2015-12-28 02:03:22 +00:00

22 lines
672 B
Django/Jinja

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