kolla-ansible/docker_templates/murano/murano-base/Dockerfile.j2
Steven Dake b4e9f56db4 Templatize Murano container
Murano is not available in RDO so only from source
install works.

Change-Id: I77aacea53b8e7782c04495f43ea7e668eaee06ab
Partially-implements: blueprint dockerfile-template
2015-08-18 00:31:33 -07:00

24 lines
581 B
Django/Jinja

FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% elif install_type == 'source' %}
ADD ./murano.tar /
RUN ln -s /murano-* /murano
RUN cd /murano \
&& pip install -r requirements.txt \
&& pip install /murano \
&& mkdir /etc/murano \
&& cd /murano \
&& tox -e genconfig \
&& cp -r etc/murano/* /etc/murano/ \
&& rm -rf /root/.cache
{% endif %}