blob: 8e42af09d56b7f5088ad1710ac61750ef41ec97e (
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
48
|
FROM ubuntu:18.04
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
inetutils-traceroute \
ca-certificates \
build-essential \
git gdb sudo \
iputils-ping \
net-tools \
iproute2 \
tcpdump \
asciidoc \
xmlto \
libssl-dev \
netcat; \
rm -rf /var/lib/apt/lists/*; \
mv /usr/sbin/tcpdump /usr/bin/tcpdump
RUN set -eux; \
mkdir -p {{vpp_path}}
COPY . / {{vpp_path}}/
WORKDIR {{vpp_path}}
RUN set -eux; \
make wipe; \
export UNATTENDED=y; \
echo "y" | make install-dep; \
rm -rf /var/lib/apt/lists/* ; \
make build; \
make pkg-deb; \
rm -rf .ccache; \
find . -type f -name '*.o' -delete ; \
cd {{vpp_path}}/build-root; \
rm vpp-api-python_*.deb; \
tar czf vpp-package.tgz *.deb; \
mv vpp-package.tgz {{vpp_path}}/; \
dpkg -i *.deb ; \
cp {{vpp_path}}/startup.conf /etc/startup.conf
WORKDIR /
CMD vpp -c /etc/startup.conf
|