-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
40 lines (36 loc) · 1.15 KB
/
Dockerfile
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
# This container is used to build VPP from sources and generate .deb packages for both production
# and debug versions.
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
gcc-9 \
debian-archive-keyring \
curl \
gnupg \
apt-transport-https \
iproute2 \
git \
build-essential \
sudo \
binutils \
telnet \
libattr1 \
gdb \
strace \
iptables
ARG vpp_branch
RUN git clone --branch $vpp_branch https://github.com/FDio/vpp.git /src/vpp
WORKDIR /src/vpp
RUN git config --global user.name "Anapaya"
RUN git config --global user.email "[email protected]"
RUN git checkout -b $vpp_branch-anapaya
COPY patches/ .
# git am fails if the patches were created with git option diff.noprefix=true
RUN git am *.patch
#RUN UNATTENDED=y make -C /src/vpp install-dep install-ext-deps
RUN UNATTENDED=y make -C /src/vpp install-dep
# DPDK MLX dependency
RUN apt-get update && apt-get upgrade -y && apt-get install -y libmnl-dev
RUN make -C /src/vpp build-release build
CMD /bin/bash