Merge "Add copper and domino in functest-features"
[functest.git] / docker / features / Dockerfile
1 FROM opnfv/functest-core
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=stable/ocata
5
6 COPY thirdparty-requirements.txt thirdparty-requirements.txt
7 RUN apk --no-cache add --virtual .build-deps --update \
8         python-dev build-base linux-headers libffi-dev \
9         openssl-dev libjpeg-turbo-dev git && \
10     pip install --no-cache-dir --src /src \
11         -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
12         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
13         -rthirdparty-requirements.txt && \
14     git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/domino /src/domino && \
15     git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/copper /src/copper && \
16     rm -r thirdparty-requirements.txt /src/domino/.git /src/copper/.git && \
17     apk del .build-deps
18 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
19 CMD ["bash","-c","prepare_env start && run_tests -t all"]