1 FROM opnfv/functest-core
4 ARG OPENSTACK_TAG=master
5 ARG ODL_TAG=85448c9d97b89989488e675b29b38ac42d8674e4
7 COPY thirdparty-requirements.txt thirdparty-requirements.txt
8 RUN apk --no-cache add --virtual .build-deps --update \
9 python-dev build-base linux-headers libffi-dev openssl-dev && \
10 wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
11 sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/git.openstack.org\\/openstack\\/tempest@\\1#egg=tempest/ \
12 > upper-constraints.txt && \
13 wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH | \
14 sed -E /#egg=functest/d > upper-constraints.opnfv.txt && \
15 pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
16 -rthirdparty-requirements.txt && \
17 git init /src/odl_test && \
18 (cd /src/odl_test && \
19 git fetch --tags https://git.opendaylight.org/gerrit/p/integration/test.git $ODL_TAG && \
20 git checkout FETCH_HEAD) && \
21 rm -r /src/odl_test/.git thirdparty-requirements.txt upper-constraints.txt \
22 upper-constraints.opnfv.txt && \
24 COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
25 CMD ["run_tests", "-t", "all"]