Merge "Use custom images and flavors for aarch64"
[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 --update nodejs nodejs-npm python3 && \
8     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     npm -g install npm@latest && \
16     (cd /src/promise/source && npm install) && \
17     rm -r thirdparty-requirements.txt && \
18     apk del .build-deps
19 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
20 CMD ["bash","-c","prepare_env start && run_tests -t all"]