1 FROM opnfv/functest-core
4 ARG OPENSTACK_TAG=stable/queens
5 ARG VIMS_TEST_TAG=release-129
6 ARG QUAFF_TAG=59213d6d8ee29433552bb75f505cdc96b0b18909
7 ARG CLOUDIFY_VIMS_TAG=fraser
8 ARG HEAT_VIMS_TAG=release-129
10 ARG JUJU_TAG=tags/juju-2.2.5
12 ENV GOPATH /src/epc-requirements/go
13 ENV GOBIN /src/epc-requirements/go/bin
16 RUN apk --no-cache add --update \
17 ruby ruby-bundler ruby-irb ruby-rdoc dnsmasq \
18 procps libxslt libxml2 zlib libffi python3 go musl-dev && \
19 apk --no-cache add --virtual .build-deps --update \
20 ruby-dev g++ make libxslt-dev libxml2-dev zlib-dev libffi-dev g++ make && \
21 wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
22 sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/github.com\\/openstack\\/tempest@\\1#egg=tempest/ | \
23 > upper-constraints.txt && \
24 wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH | \
25 sed -E /#egg=functest/d > upper-constraints.opnfv.txt && \
26 git clone --depth 1 -b $VIMS_TEST_TAG https://github.com/Metaswitch/clearwater-live-test /src/vims-test && \
27 sed -i s/unf_ext\ \(.*\)/unf_ext\ \(0.0.7.4\)/g /src/vims-test/Gemfile.lock && \
28 git clone https://github.com/Metaswitch/quaff /src/vims-test/quaff && \
29 (cd /src/vims-test/quaff && git checkout $QUAFF_TAG) && \
30 git clone --depth 1 -b $VIMS_TEST_TAG https://github.com/Metaswitch/clearwater-build-infra /src/vims-test/build-infra && \
31 git clone --depth 1 -b $CLOUDIFY_VIMS_TAG https://github.com/Orange-OpenSource/opnfv-cloudify-clearwater.git /src/cloudify_vims && \
32 git clone --depth 1 -b $HEAT_VIMS_TAG https://github.com/Metaswitch/clearwater-heat.git /src/heat_vims && \
33 git clone --depth 1 -b $VROUTER_TAG https://github.com/oolorg/opnfv-vnf-vyos-blueprint.git /src/opnfv-vnf-vyos-blueprint && \
34 git clone https://github.com/RebacaInc/abot_charm.git /src/epc-requirements/abot_charm && \
35 python3 -m pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
37 go get github.com/rogpeppe/godeps && \
38 go get -d -v github.com/juju/juju/... || true && \
39 (cd $GOPATH/src/github.com/juju/juju && git checkout $JUJU_TAG && godeps -u dependencies.tsv) && \
40 go install -v github.com/juju/juju/... && \
41 rm -r $GOPATH/src/ $GOPATH/pkg && \
42 (cd /src/vims-test && bundle config build.nokogiri --use-system-libraries && bundle install --system) && \
43 rm -r upper-constraints.txt upper-constraints.opnfv.txt /src/vims-test/.git /src/cloudify_vims/.git /src/heat_vims/.git /src/vims-test/quaff/.git \
44 /src/vims-test/build-infra/.git /src/opnfv-vnf-vyos-blueprint/.git \
45 /src/epc-requirements/abot_charm/.git && \
47 COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
48 CMD ["run_tests", "-t", "all"]