Merge "Unify the key as testcase in result"
[functest.git] / docker / smoke / Dockerfile
1 FROM opnfv/functest-core
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=stable/ocata
5 ARG ODL_TAG=release/carbon
6 ARG FDS_TAG=master
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 git && \
12     git clone --depth 1 https://github.com/openstack/refstack-client.git /src/refstack-client && \
13     update-requirements -s --source /src/openstack-requirements /src/refstack-client/ && \
14     pip install --no-cache-dir --src /src \
15         -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
16         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
17         -e/src/refstack-client && \
18     pip install --no-cache-dir --src /src \
19         -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
20         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
21         -rthirdparty-requirements.txt && \
22     git clone --depth 1 -b $ODL_TAG https://git.opendaylight.org/gerrit/p/integration/test.git /src/odl_test && \
23     git clone --depth 1 -b $FDS_TAG https://gerrit.opnfv.org/gerrit/fds /src/fds && \
24     ln -s /src/tempest /src/refstack-client/.tempest && \
25     virtualenv --system-site-packages /src/tempest/.venv && \
26     rm -r thirdparty-requirements.txt /src/refstack-client/.git /src/odl_test/.git \
27         /src/fds/.git && \
28     apk del .build-deps
29 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
30 CMD ["bash","-c","prepare_env start && run_tests -t all"]