blob: 074fec02019b28f7d6cf88dd1eb9c973647313ba (
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
|
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
EXPOSE 8183
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
FROM vpp
COPY --from=builder /opt/honeycomb /opt/honeycomb
COPY init.sh /opt/init.sh
ENV PROTECTED_NET_CIDR "192.168.20.0/24"
ENV FW_IPADDR "192.168.10.100"
ENV SINK_IPADDR "192.168.20.250"
RUN apt-get update && apt-get install -y -qq --no-install-recommends \
openjdk-8-jre iproute2 \
&& mkdir -p /opt/pg_streams
ENTRYPOINT ["/bin/bash"]
CMD ["/opt/init.sh"]
|