Merge "Add all ODL testcases in functest-smoke"
[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/beryllium-sr4
6
7 COPY thirdparty-requirements.txt thirdparty-requirements.txt
8 RUN apk --no-cache add --virtual .build-deps --update \
9         python-dev build-base linux-headers libffi-dev \
10         openssl-dev libjpeg-turbo-dev git && \
11     pip install --no-cache-dir --src /src \
12         -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
13         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
14         -rthirdparty-requirements.txt && \
15     git clone --depth 1 -b $ODL_TAG https://git.opendaylight.org/gerrit/p/integration/test.git /src/odl_test && \
16     git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/fds /src/fds && \
17     ln -s /src/tempest /src/refstack-client/.tempest && \
18     virtualenv --system-site-packages /src/tempest/.venv && \
19     rm -r thirdparty-requirements.txt /src/refstack-client/.git /src/odl_test/.git \
20         /src/fds/.git && \
21     apk del .build-deps
22 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
23 CMD ["bash","-c","prepare_env start && run_tests -t all"]