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 git clone https://github.com/openstack/refstack-client.git /src/refstack-client && \
19 (cd src/refstack-client && git checkout $REFSTACK_TAG) && \
20 update-requirements -s --source /src/openstack-requirements /src/refstack-client/ && \
21 pip install --no-cache-dir --src /src \
22 -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
23 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
24 -e/src/refstack-client -rthirdparty-requirements.txt && \
25 python3 -m pip install --no-cache-dir --src /src \
26 -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
27 -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH \
29 git clone https://git.opendaylight.org/gerrit/p/integration/test.git /src/odl_test && \
30 (cd src/odl_test && git checkout $ODL_TAG) && \
31 git clone --depth 1 -b $FDS_TAG https://gerrit.opnfv.org/gerrit/fds /src/fds && \
32 git clone --depth 1 -b $VIMS_TAG https://github.com/boucherv-orange/clearwater-live-test /src/vims-test && \
33 ln -s /src/tempest /src/refstack-client/.tempest && \
34 virtualenv --system-site-packages /src/tempest/.venv && \
35 (cd /src/promise/source && npm install) && \
36 (cd /src/vims-test && bundle config build.nokogiri --use-system-libraries && bundle install --system) && \
37 npm -g install npm@latest && \
38 rm -r thirdparty-requirements.txt /src/refstack-client/.git /src/odl_test/.git \
39 /src/fds/.git /src/vims-test/.git && \
42 CMD ["functest_restapi"]