-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile-dpdk
52 lines (44 loc) · 1.29 KB
/
Dockerfile-dpdk
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
49
50
51
52
FROM quay.io/centos/centos:8
LABEL maintainer="Sebastian Scheinkman <[email protected]>"
ARG DPDK_VER=20.11.3
ENV DPDK_VER ${DPDK_VER}
ENV DPDK_DIR /usr/src/dpdk-stable-${DPDK_VER}
ENV RTE_TARGET=x86_64-native-linuxapp-gcc
ENV RTE_SDK=${DPDK_DIR}
ENV PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/
RUN dnf install dnf-plugins-core -y && dnf config-manager --set-enabled powertools && dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
# The second dnf install is here to overcome versions mismatch between rpms
RUN dnf install -y wget python3\
numactl \
numactl-devel \
make \
logrotate \
ethtool \
patch \
which \
readline-devel \
iproute \
libibverbs \
lua \
git \
gcc \
expect \
sysstat \
htop \
net-tools \
libibverbs-devel \
perf \
tcpdump && \
dnf clean all
RUN pip3 install meson ninja
RUN cd /usr/src/ && wget http://fast.dpdk.org/rel/dpdk-${DPDK_VER}.tar.xz && tar -xpvf dpdk-${DPDK_VER}.tar.xz && rm dpdk-${DPDK_VER}.tar.xz && \
cd dpdk-stable-${DPDK_VER} && \
meson build && \
cd build && \
meson configure -Denable_docs=false -Dbuildtype=debug && \
ninja && \
ninja install && \
echo "/usr/local/lib64" > /etc/ld.so.conf.d/dpdk.conf && \
ldconfig
COPY scripts/* /usr/bin/
WORKDIR /usr/src/dpdk-stable-${DPDK_VER}