aboutsummaryrefslogtreecommitdiffstats
path: root/docker/barometer-tests/Dockerfile
diff options
context:
space:
mode:
authorEmma Foley <efoley@redhat.com>2020-05-27 11:30:07 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-05-27 11:30:07 +0000
commitf355e1c967f778262cc27fbbf2e1350ef4f1f38b (patch)
tree92d73ccbeac8c27907093f12f8672a0a56da601a /docker/barometer-tests/Dockerfile
parentf04c2f96e7dc57ec0461e6278772f7cf711b9c25 (diff)
parent41912fa3d96b554c34c3d12790bf813a339643d0 (diff)
Merge "Publish a new Barometer testing container"
Diffstat (limited to 'docker/barometer-tests/Dockerfile')
-rw-r--r--docker/barometer-tests/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/barometer-tests/Dockerfile b/docker/barometer-tests/Dockerfile
new file mode 100644
index 00000000..6b5d3f15
--- /dev/null
+++ b/docker/barometer-tests/Dockerfile
@@ -0,0 +1,18 @@
+FROM opnfv/functest-core:hunter
+
+ARG BRANCH=master
+ARG OPNFV_BRANCH=stable/hunter
+ARG OPENSTACK_TAG=stable/rocky
+
+RUN apk --no-cache add --virtual .build-deps --update \
+ python-dev build-base linux-headers libffi-dev \
+ openssl-dev libjpeg-turbo-dev && \
+ wget -q -O- https://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt > upper-constraints.txt && \
+ wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_BRANCH > upper-constraints.opnfv.txt && \
+ sed -i -E /#egg=baro_tests/d upper-constraints.opnfv.txt && \
+ pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
+ git+https://gerrit.opnfv.org/gerrit/barometer@$BRANCH#egg=baro_tests && \
+ rm -r upper-constraints.txt upper-constraints.opnfv.txt && \
+ apk del .build-deps
+COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
+CMD ["run_tests", "-t", "all"]