
Change-Id: Ie0fb8c57a1e8c67fc8b8c219ceb15a2c3e2e0f35 Partially-Implements: blueprint install-from-ubuntu
24 lines
723 B
Django/Jinja
24 lines
723 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 \
|
|
&& useradd --user-group murano \
|
|
&& pip install -r requirements.txt \
|
|
&& pip install --install-option="--install-scripts=/usr/bin" /murano \
|
|
&& mkdir -p /etc/murano /var/log/murano /home/murano \
|
|
&& cp -r /murano/etc/murano/* /etc/murano/ \
|
|
&& chown -R murano: /etc/murano /var/log/murano /home/murano \
|
|
&& rm -rf /root/.cache
|
|
|
|
{% endif %}
|