Templatize Murano container

Murano is not available in RDO so only from source
install works.

Change-Id: I77aacea53b8e7782c04495f43ea7e668eaee06ab
Partially-implements: blueprint dockerfile-template
This commit is contained in:
Steven Dake 2015-08-16 14:48:58 -07:00
parent b11321cedc
commit b4e9f56db4
7 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,8 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-murano-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY config-external.sh /opt/kolla/
COPY start.sh /
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../docker/common/murano/murano-api/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/murano/murano-api/start.sh

View File

@ -0,0 +1,23 @@
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 %}

View File

@ -0,0 +1,8 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-murano-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY config-external.sh /opt/kolla/
COPY start.sh /
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../docker/common/murano/murano-engine/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/murano/murano-engine/start.sh