diff options
| author | Shaun Smekel <shaun.smekel@theorem.net.au> | 2016-08-12 07:01:29 +1000 |
|---|---|---|
| committer | Shaun Smekel <shaun.smekel@theorem.net.au> | 2016-08-12 07:02:39 +1000 |
| commit | 43d2a0b78fb5506a868d3baab1f6bf7c16c0ab91 (patch) | |
| tree | 0eb609b3b596276aeac5b8553e7d379ce314ddf2 /docker/tempest | |
| parent | e4259f805b91ce0859e7190f97f8dbf34ee92e45 (diff) | |
| download | kolla-43d2a0b78fb5506a868d3baab1f6bf7c16c0ab91.tar.gz kolla-43d2a0b78fb5506a868d3baab1f6bf7c16c0ab91.zip | |
Customizations for Tempest
This patchset contains customization of Dockerfile of the Tempest
container.
Change-Id: I32751bdd400978336d29e3a1c5c758d33316edfa
Partially-implements: blueprint third-party-plugin-support
Diffstat (limited to 'docker/tempest')
| -rw-r--r-- | docker/tempest/Dockerfile.j2 | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/docker/tempest/Dockerfile.j2 b/docker/tempest/Dockerfile.j2 index 8b389116d..0e1f5edc1 100644 --- a/docker/tempest/Dockerfile.j2 +++ b/docker/tempest/Dockerfile.j2 @@ -1,20 +1,17 @@ FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }} MAINTAINER {{ maintainer }} +{% import "macros.j2" as macros with context %} + {% if install_type == 'binary' %} {% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %} - -RUN yum -y install \ - openstack-tempest \ - && yum clean all - + {% set tempest_packages = ['openstack-tempest'] %} {% elif base_distro in ['ubuntu'] %} + {% set tempest_packages = ['tempest'] %} + {% endif %} -RUN apt-get -y install --no-install-recommends \ - tempest \ - && apt-get clean +RUN {{ macros.install_packages(tempest_packages | customizable("packages")) }} - {% endif %} {% elif install_type == 'source' %} ADD tempest-archive /tempest-source @@ -32,4 +29,6 @@ WORKDIR /tempest COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN chmod 755 /usr/local/bin/kolla_extend_start +{% block tempest_footer %}{% endblock %} +{% block footer %}{% endblock %} {{ include_footer }} |
