Leverage on Xtesting
[functest.git] / docker / parser / Dockerfile
1 FROM opnfv/functest-core
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=stable/pike
5 ARG RALLY_TAG=stable/0.10
6 ARG OS_FAULTS_TAG=0.1.16
7
8 COPY thirdparty-requirements.txt thirdparty-requirements.txt
9 RUN apk --no-cache add --virtual .build-deps --update \
10         python-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     pip install --no-cache-dir --src /src -cupper-constraints.txt \
16         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
17         -rthirdparty-requirements.txt && \
18     rm upper-constraints.txt thirdparty-requirements.txt && \
19     apk del .build-deps
20 COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
21 CMD ["run_tests", "-t", "all"]