-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile-dpdk
More file actions
61 lines (54 loc) · 1.52 KB
/
Copy pathDockerfile-dpdk
File metadata and controls
61 lines (54 loc) · 1.52 KB
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
53
54
55
56
57
58
59
60
61
FROM quay.io/centos/centos:stream9
LABEL maintainer="Sebastian Scheinkman <sebassch@gmail.com>"
ARG DPDK_VER=24.11.4
ENV DPDK_VER=${DPDK_VER}
ENV DPDK_DIR=/usr/src/dpdk-stable-${DPDK_VER}
ENV PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig
RUN dnf install -y dnf-plugins-core \
&& dnf config-manager --set-enabled crb \
&& dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
&& dnf install -y \
diffutils \
ethtool \
expect \
gcc \
gcc-c++ \
git \
htop \
iproute \
libibverbs \
libibverbs-devel \
logrotate \
lua \
make \
meson \
net-tools \
ninja-build \
numactl \
numactl-devel \
patch \
perf \
pkgconf-pkg-config \
python3 \
python3-pip \
readline-devel \
sysstat \
tcpdump \
wget \
which \
xz \
&& dnf clean all \
&& rm -rf /var/cache/dnf
RUN pip3 install --no-cache-dir pyelftools
RUN cd /usr/src \
&& wget https://fast.dpdk.org/rel/dpdk-${DPDK_VER}.tar.xz \
&& tar -xpf dpdk-${DPDK_VER}.tar.xz \
&& rm dpdk-${DPDK_VER}.tar.xz \
&& cd ${DPDK_DIR} \
&& meson setup build -Denable_docs=false -Dbuildtype=release \
&& meson compile -C build \
&& meson install -C build \
&& printf "/usr/local/lib64\n/usr/local/lib\n" > /etc/ld.so.conf.d/dpdk.conf \
&& ldconfig
COPY scripts/* /usr/bin/
WORKDIR ${DPDK_DIR}