1 FROM opnfv/functest-core
4 ARG OPENSTACK_TAG=stable/ocata
5 ARG ODL_TAG=e12ba90cd27577c4c6c70ee54f7d599b5f6777ba
7 ARG REFSTACK_TAG=4e187b07672dd1c41cb7c94658f1c91edebf53a2
10 COPY thirdparty-requirements.txt thirdparty-requirements.txt
11 RUN apk --no-cache add --update nodejs nodejs-npm python3 sshpass \
12 ruby ruby-bundler ruby-irb ruby-rdoc dnsmasq \
13 procps libxslt libxml2 zlib libffi && \
14 apk --no-cache add --virtual .build-deps --update \
15 python-dev python3-dev build-base linux-headers libffi-dev \
16 openssl-dev libjpeg-turbo-dev \
17 ruby-dev g++ make libxslt-dev libxml2-dev zlib-dev libffi-dev && \
18 wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
19 sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/github.com\\/openstack\\/tempest@\\1#egg=tempest/ | \
20 sed s/^requests===.*$/requests===2.13.0/ \
21 > upper-constraints.txt && \
22 git clone https://github.com/openstack/refstack-client.git /src/refstack-client && \
23 (cd src/refstack-client && git checkout $REFSTACK_TAG) && \
24 update-requirements -s --source /src/openstack-requirements /src/refstack-client/ && \
25 pip install --no-cache-dir --src /src -cupper-constraints.txt \
26 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
27 -e/src/refstack-client -rthirdparty-requirements.txt && \
28 python3 -m pip install --no-cache-dir --src /src -cupper-constraints.txt \
29 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
31 git clone https://git.opendaylight.org/gerrit/p/integration/test.git /src/odl_test && \
32 (cd src/odl_test && git checkout $ODL_TAG) && \
33 git clone --depth 1 -b $FDS_TAG https://gerrit.opnfv.org/gerrit/fds /src/fds && \
34 git clone --depth 1 -b $VIMS_TAG https://github.com/boucherv-orange/clearwater-live-test /src/vims-test && \
35 ln -s /src/tempest /src/refstack-client/.tempest && \
36 virtualenv --system-site-packages /src/tempest/.venv && \
37 (cd /src/promise/source && npm install) && \
38 (cd /src/vims-test && bundle config build.nokogiri --use-system-libraries && bundle install --system) && \
39 npm -g install npm@latest && \
40 rm -r upper-constraints.txt thirdparty-requirements.txt /src/refstack-client/.git /src/odl_test/.git \
41 /src/fds/.git /src/vims-test/.git && \
44 CMD ["functest_restapi"]