Unify Centos and Ubuntu Source Install - Designate

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: I83b0d2ca2735b0b6b0b94d67f4ab301b92ef1e0a
Partially-Implements: blueprint install-from-ubuntu
This commit is contained in:
Sam Yaple 2015-08-27 10:28:31 +00:00
parent eecf6581a4
commit abcc7d1731

View File

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