aboutsummaryrefslogtreecommitdiff
path: root/docker/tempest
diff options
context:
space:
mode:
authorChandan Kumar <chkumar@redhat.com>2018-01-08 16:19:54 +0530
committerChandan Kumar <chkumar@redhat.com>2018-01-24 07:48:30 +0000
commitfd85895a546624e7236c282ce740ce1f5b027bc3 (patch)
tree9eb625f1c350697ebe08f23b0e95199cb1892559 /docker/tempest
parentd38a885a01900cb40d3eff63f899c896741dfb71 (diff)
downloadkolla-fd85895a546624e7236c282ce740ce1f5b027bc3.tar.gz
kolla-fd85895a546624e7236c282ce740ce1f5b027bc3.zip
Include building python-tempestconf from source in Tempest
* python-tempestconf is an automatic Tempest config generator. Currently it is used in RefStack and Tripleo projects and installed directly RDO shipped tempest RPM package. It would be good to include in Tempest container so that it can be while using tempest container image from source. * http://git.openstack.org/cgit/openstack/python-tempestconf Change-Id: I47e812427343b16662378381e96ab354904256c5
Diffstat (limited to 'docker/tempest')
-rw-r--r--docker/tempest/Dockerfile.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/tempest/Dockerfile.j2 b/docker/tempest/Dockerfile.j2
index c57def321..988f512ec 100644
--- a/docker/tempest/Dockerfile.j2
+++ b/docker/tempest/Dockerfile.j2
@@ -23,17 +23,25 @@ RUN ln -sf /var/lib/tempest /tempest
{% elif install_type == 'source' %}
ADD tempest-archive /tempest-source
+ADD plugins-archive /
{% set tempest_pip_packages = [
'/tempest',
'nose'
] %}
+{% set tempest_base_plugins_pip_packages = [
+ '/plugins/*'
+] %}
+
# NOTE(Jeffrey4l): remove the tempest version constraint in the
# upper-constrains.txt file. Otherwise, it will be failed.
RUN ln -s tempest-source/* tempest \
&& sed -i 's/^tempest===.*$//' requirements/upper-constraints.txt \
&& {{ macros.install_pip(tempest_pip_packages | customizable("pip_packages")) }} \
+ && if [ "$(ls /plugins)" ]; then \
+ {{ macros.install_pip(tempest_base_plugins_pip_packages) }}; \
+ fi \
&& mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock
{% endif %}