Unify Centos and Ubuntu Source Install - Nova

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: I58708a4e7375f20622c944539a41336333d3bfcb
Partially-Implements: blueprint install-from-ubuntu
This commit is contained in:
Sam Yaple 2015-08-27 09:46:42 +00:00
parent eecf6581a4
commit bd98a508bd

View File

@ -39,16 +39,12 @@ RUN apt-get install -y --no-install-recommends \
{% endif %}
ADD ./nova.tar /
RUN ln -s /nova-* /nova
RUN cd /nova \
ADD nova.tar /
RUN ln -s /nova-* nova \
&& useradd --user-group nova \
&& pip install -r requirements.txt \
&& pip install --install-option="--install-scripts=/usr/bin" /nova \
&& mkdir /etc/nova /var/log/nova /home/nova \
&& pip --no-cache-dir install /nova \
&& mkdir -p /etc/nova /var/log/nova /home/nova \
&& cp -r /nova/etc/nova/* /etc/nova/ \
&& chown -R nova: /etc/nova /var/log/nova /home/nova \
&& rm -rf /root/.cache
&& chown -R nova: /etc/nova /var/log/nova /home/nova
{% endif %}