Merge "Set proper workdir for different distro in tempest container"

This commit is contained in:
Jenkins 2016-11-27 08:02:15 +00:00 committed by Gerrit Code Review
commit 6e4586b6ea
1 changed files with 11 additions and 5 deletions

View File

@ -8,11 +8,17 @@ MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set tempest_packages = ['openstack-tempest'] %}
{% elif base_distro in ['ubuntu'] %}
{% set tempest_packages = ['tempest'] %}
{% endif %}
{{ macros.install_packages(tempest_packages | customizable("packages")) }}
RUN ln -sf /usr/share/openstack-tempest-* /tempest
{% elif base_distro in ['ubuntu'] %}
{% set tempest_packages = ['tempest'] %}
{{ macros.install_packages(tempest_packages | customizable("packages")) }}
RUN ln -sf /var/lib/tempest /tempest
{% endif %}
{% elif install_type == 'source' %}
@ -24,10 +30,10 @@ RUN ln -s tempest-source/* tempest \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /tempest \
&& mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock
WORKDIR /tempest
{% endif %}
WORKDIR /tempest
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start