aboutsummaryrefslogtreecommitdiff
path: root/docker/tempest/Dockerfile.j2
diff options
context:
space:
mode:
authorPaul Bourke <pauldbourke@gmail.com>2015-10-23 16:06:01 +0100
committerPaul Bourke <paul.bourke@oracle.com>2015-11-26 14:41:44 +0000
commitf98bd052719a92daf89eda0cd4dd9709d1e7e2be (patch)
tree9b6958dff5d0e5bc8946e635de082a98d94144be /docker/tempest/Dockerfile.j2
parent3a8157211251787b9c1941c698ec13e427106e3e (diff)
downloadkolla-f98bd052719a92daf89eda0cd4dd9709d1e7e2be.tar.gz
kolla-f98bd052719a92daf89eda0cd4dd9709d1e7e2be.zip
Add new image for tempest
Note, this image is slightly different to most others in Kolla in that it's not a service designed to be deployed via Ansible. It's more a 'tool' type image that is spun up when needed. Partially-Implements: blueprint tempest-gate Change-Id: I1877c03d0804e57d274044aecb1055f847025bec
Diffstat (limited to 'docker/tempest/Dockerfile.j2')
-rw-r--r--docker/tempest/Dockerfile.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/docker/tempest/Dockerfile.j2 b/docker/tempest/Dockerfile.j2
new file mode 100644
index 000000000..f8330f217
--- /dev/null
+++ b/docker/tempest/Dockerfile.j2
@@ -0,0 +1,21 @@
+FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
+MAINTAINER {{ maintainer }}
+
+{% if install_type == 'binary' %}
+ {% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}
+
+RUN yum -y install \
+ openstack-tempest \
+ && yum clean all
+
+ {% endif %}
+{% elif install_type == 'source' %}
+
+ADD tempest-archive /tempest-source
+RUN ln -s tempest-source/* tempest \
+ && pip --no-cache-dir install -c requirements/upper-constraints.txt /tempest \
+ && mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock
+
+{% endif %}
+
+{{ include_footer }}