summaryrefslogtreecommitdiffstats
path: root/src/arm/cni-deploy/roles/vhost-vpp/files/Dockerfile.vpp1710-dpdk1708
blob: 2f83534637fc891b2be14c07958d6959a4d4f57f (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
FROM ubuntu:xenial

RUN apt-get update && \
    apt-get install -y git make openssl libcrypto++-dev libnuma-dev && \
    apt-get autoclean

RUN git clone https://gerrit.fd.io/r/vpp -b stable/1710 /root/vpp-1710

WORKDIR /root/vpp-1710
COPY ./0001-net-virtio-ethdev.patch dpdk/dpdk-17.08_patches/0001-net-virtio-ethdev.patch
RUN sed -i "s/sudo -E //g" Makefile
RUN make UNATTENDED=yes install-dep

WORKDIR /root/vpp-1710/build-root
RUN ./bootstrap.sh
RUN make PLATFORM=vpp TAG=vpp_debug vpp-install
RUN mkdir -p /etc/vpp && \
    cp /root/vpp-1710/src/vpp/conf/startup.conf /etc/vpp/startup.conf && \
    cp /root/vpp-1710/build-root/install-vpp_debug-native/vpp/bin/* /usr/bin && \
    ln -s /root/vpp-1710/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins /usr/lib/vpp_plugins
RUN groupadd vpp

ENV PATH "$PATH:/root/vpp-1710/build-root/install-vpp_debug-native/dpdk/bin"
ENV PATH "$PATH:/root/vpp-1710/build-root/install-vpp_debug-native/vpp/bin"