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 python3 sshpass && \
8 apk --no-cache add --virtual .build-deps --update \
9 python-dev python3-dev build-base linux-headers libffi-dev \
10 openssl-dev libjpeg-turbo-dev && \
11 wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
12 sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/github.com\\/openstack\\/tempest@\\1#egg=tempest/ | \
13 sed s/^requests===.*$/requests===2.13.0/ \
14 > upper-constraints.txt && \
15 pip install --no-cache-dir --src /src -cupper-constraints.txt \
16 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
17 -rthirdparty-requirements.txt && \
18 python3 -m pip install --no-cache-dir --src /src -cupper-constraints.txt \
19 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
21 npm -g install npm@latest && \
22 (cd /src/promise/source && npm install) && \
23 rm -r upper-constraints.txt thirdparty-requirements.txt && \
25 COPY testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml
26 CMD ["bash","-c","prepare_env start && run_tests -t all"]