Merge "Allow building Alpine containers from any gerrit changes"
[functest.git] / docker / features / Dockerfile
1 FROM opnfv/functest-core
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=stable/ocata
5 ARG DOMINO_TAG=master
6
7 COPY thirdparty-requirements.txt thirdparty-requirements.txt
8 RUN apk --no-cache add --update nodejs nodejs-npm && \
9     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     pip install --no-cache-dir --src /src \
13         -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
14         -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
15         -rthirdparty-requirements.txt && \
16     npm -g install npm@latest && \
17     (cd /src/promise/source && npm install) && \
18     git clone --depth 1 -b $DOMINO_TAG https://gerrit.opnfv.org/gerrit/domino /src/domino && \
19     rm -r thirdparty-requirements.txt /src/domino/.git && \
20     apk del .build-deps
21 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
22 CMD ["bash","-c","prepare_env start && run_tests -t all"]