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 %} {% endif %}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
ADD ./designate.tar / ADD designate.tar /
RUN ln -s /designate-* /designate RUN ln -s /designate-* designate \
RUN cd /designate \
&& useradd --user-group designate \ && useradd --user-group designate \
&& pip install -r requirements.txt \ && pip --no-cache-dir install /designate \
&& pip install /designate \ && mkdir -p /etc/designate /var/log/designate /home/designate \
&& mkdir /etc/designate /var/log/designate \
&& cp -r /designate/etc/designate/* /etc/designate/ \ && cp -r /designate/etc/designate/* /etc/designate/ \
&& rm -rf /root/.cache && chown -R designate: /etc/designate /var/log/designate /home/designate
{% endif %} {% endif %}