Merge "Remove useless enabled: true in testcases.yaml"
[functest.git] / docker / restapi / Dockerfile
1 FROM opnfv/functest-core
2
3 ARG BRANCH=master
4 ARG OPENSTACK_TAG=stable/ocata
5 ARG ODL_TAG=35e415b6873b39d72775c88a337e92dac26012e2
6 ARG FDS_TAG=master
7 ARG REFSTACK_TAG=4e187b07672dd1c41cb7c94658f1c91edebf53a2
8 ARG VIMS_TAG=stable
9
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 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 --depth 1 https://github.com/openstack/refstack-client.git /src/refstack-client && \
19     (cd src/refstack-client && git checkout -b $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     git clone --depth 1 https://git.opendaylight.org/gerrit/p/integration/test.git /src/odl_test && \
26     (cd src/odl_test && git checkout -b $ODL_TAG) && \
27     git clone --depth 1 -b $FDS_TAG https://gerrit.opnfv.org/gerrit/fds /src/fds && \
28     git clone --depth 1 -b $VIMS_TAG https://github.com/boucherv-orange/clearwater-live-test /src/vims-test && \
29     ln -s /src/tempest /src/refstack-client/.tempest && \
30     virtualenv --system-site-packages /src/tempest/.venv && \
31     (cd /src/promise/source && npm install) && \
32     (cd /src/vims-test && bundle config build.nokogiri --use-system-libraries && bundle install --system) && \
33     npm -g install npm@latest && \
34     rm -r thirdparty-requirements.txt /src/refstack-client/.git /src/odl_test/.git \
35         /src/fds/.git /src/vims-test/.git && \
36     apk del .build-deps
37 EXPOSE 5000
38 CMD ["functest_restapi"]