1 FROM opnfv/functest-core
4 ARG OPENSTACK_TAG=stable/ocata
6 COPY thirdparty-requirements.txt thirdparty-requirements.txt
7 RUN apk --no-cache add --update nodejs nodejs-npm && \
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 git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/domino /src/domino && \
18 rm -r thirdparty-requirements.txt /src/domino/.git && \
20 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
21 CMD ["bash","-c","prepare_env start && run_tests -t all"]