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