summaryrefslogtreecommitdiffstats
path: root/kud/tests/cFW/firewall/Dockerfile
blob: 086f30ce4e87d1561bef3ccb5e55034aa1e2e8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM ubuntu:18.04 as builder
MAINTAINER Victor Morales <electrocucaracha@gmail.com>

ENV demo_artifacts_version "1.6.0"
ENV repo_url "https://nexus.onap.org/content/repositories/staging/org/onap/demo/vnf"

RUN apt-get update && apt-get install -y -qq --no-install-recommends \
 wget ca-certificates

WORKDIR /opt

RUN wget "${repo_url}/sample-distribution/${demo_artifacts_version}/sample-distribution-${demo_artifacts_version}-hc.tar.gz" \
 && tar -zmxf sample-distribution-${demo_artifacts_version}-hc.tar.gz \
 && rm sample-distribution-${demo_artifacts_version}-hc.tar.gz \
 && mv sample-distribution-${demo_artifacts_version} honeycomb \
 && sed -i 's/"restconf-binding-address": .*/"restconf-binding-address": "0.0.0.0",/g' /opt/honeycomb/config/restconf.json

RUN apt-get install -y -qq --no-install-recommends \
 make gcc libc6-dev libcurl4-gnutls-dev

RUN wget "${repo_url}/ves5/ves/${demo_artifacts_version}/ves-${demo_artifacts_version}-demo.tar.gz" \
 && tar -zmxf ves-${demo_artifacts_version}-demo.tar.gz \
 && rm ves-${demo_artifacts_version}-demo.tar.gz \
 && mv ves-${demo_artifacts_version} VES

RUN wget "${repo_url}/ves5/ves_vfw_reporting/${demo_artifacts_version}/ves_vfw_reporting-${demo_artifacts_version}-demo.tar.gz" \
 && tar -zmxf ves_vfw_reporting-${demo_artifacts_version}-demo.tar.gz \
 && rm ves_vfw_reporting-${demo_artifacts_version}-demo.tar.gz \
 && mv ves_vfw_reporting-${demo_artifacts_version} VES/evel/evel-library/code/VESreporting \
 && chmod +x VES/evel/evel-library/code/VESreporting/go-client.sh \
 && make -C /opt/VES/evel/evel-library/bldjobs/

FROM vpp

COPY --from=builder /opt/honeycomb /opt/honeycomb
COPY --from=builder /opt/VES/evel/evel-library/code/VESreporting /opt/VESreporting
COPY --from=builder /opt/VES/evel/evel-library/libs/x86_64/libevel.so /usr/lib/x86_64-linux-gnu/
COPY init.sh /opt/init.sh

ENV DCAE_COLLECTOR_IP ""
ENV DCAE_COLLECTOR_PORT ""

RUN apt-get update && apt-get install -y -qq --no-install-recommends \
 openjdk-8-jre iproute2 libcurl4-gnutls-dev

ENTRYPOINT ["/bin/bash"]
CMD ["/opt/init.sh"]