Unify Centos and Ubuntu Source Install - Magnum

A change merged in the base allows for Centos and Ubuntu to install
all python things to the same locations. This updates the source
section to reflect that change.

Change-Id: Ie09a6e3d04af792539bdabe1310de6bad3ecccee
Partially-Implements: blueprint install-from-ubuntu
This commit is contained in:
Sam Yaple 2015-08-27 10:35:07 +00:00
parent eecf6581a4
commit ce54b56cb3
4 changed files with 5 additions and 11 deletions

View File

@ -1 +0,0 @@
../../../tools/build-docker-image

View File

@ -18,15 +18,12 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
ADD ./magnum.tar /
RUN ln -s /magnum-* /magnum
RUN cd /magnum \
ADD magnum.tar /
RUN ln -s /magnum-* magnum \
&& useradd --user-group magnum \
&& pip install -r requirements.txt \
&& pip install /magnum \
&& mkdir /etc/magnum /var/log/magnum \
&& pip --no-cache-dir install /magnum \
&& mkdir -p /etc/magnum /var/log/magnum /home/magnum \
&& cp -r /magnum/etc/* /etc/magnum/ \
&& rm -rf /root/.cache
&& chown -R magnum: /etc/magnum /var/log/magnum /home/magnum
{% endif %}

View File

@ -1 +0,0 @@
../../../tools/build-docker-image

View File

@ -1 +0,0 @@
../../../tools/build-docker-image