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