Publish tenantnetwork scenarios
[functest.git] / docker / features / Dockerfile
1 FROM opnfv/functest-tempest
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=stable/queens
5 ARG FDS_TAG=master
6
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:\\/\\/github.com\\/openstack\\/tempest@\\1#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 clone --depth 1 -b $FDS_TAG https://gerrit.opnfv.org/gerrit/fds /src/fds && \
18     python3 -m pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
19         doctor-tests && \
20     rm -r upper-constraints.txt upper-constraints.opnfv.txt thirdparty-requirements.txt /src/fds/.git && \
21     apk del .build-deps
22 COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
23 CMD ["run_tests", "-t", "all"]