Unify Centos and Ubuntu Source Install - Glance

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: Icc6c4ab8dee644a297f7a75b734466e617e0ee30
Partially-Implements: blueprint install-from-ubuntu
This commit is contained in:
Sam Yaple 2015-08-27 09:45:15 +00:00
parent eecf6581a4
commit 2eac7ab9ce

View File

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