Skip to content

Commit 6601474

Browse files
committed
updated to dpdk 22.11.1
Signed-off-by: Alberto Losada <alosadag@redhat.com>
1 parent ef6964f commit 6601474

5 files changed

+92
-43
lines changed

acc100/applications/fpga-sample-app/Dockerfile

-42
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dockerfile.dpdk-22.11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (c) 2019 Intel Corporation
3+
4+
FROM centos:7.9.2009 AS builder
5+
6+
ENV http_proxy=$http_proxy
7+
ENV https_proxy=$https_proxy
8+
ENV DPDK_FILENAME=dpdk-20.11.tar.xz
9+
ENV DPDK_LINK=https://fast.dpdk.org/rel/dpdk-20.11.tar.xz
10+
ENV RTE_SDK=/root/dpdk-20.11/
11+
ENV RTK=4.18.0-372.40.1.rt7.197.el8_6.x86_64
12+
#ENV RTK=4.18.0-305.34.2.rt7.107.el8_4.x86_64
13+
14+
WORKDIR /root/
15+
COPY /files /root/files
16+
RUN yum install -y gcc-c++ make git xz-utils wget numactl-devel epel-release && yum install -y meson
17+
18+
RUN wget $DPDK_LINK
19+
RUN tar -xf $DPDK_FILENAME
20+
21+
# RT repo
22+
#RUN wget http://linuxsoft.cern.ch/cern/centos/7.9.2009/rt/CentOS-RT.repo -O /etc/yum.repos.d/CentOS-RT.repo
23+
#RUN wget http://linuxsoft.cern.ch/cern/centos/7.9.2009/os/x86_64/RPM-GPG-KEY-cern -O /etc/pki/rpm-gpg/RPM-GPG-KEY-cern
24+
25+
# install kernel sources to compile DPDK
26+
#RUN export isRT=$(uname -r | grep rt -c) && if [ $isRT = "1" ] ; then yum install -y "kernel-rt-devel-uname-r == $(uname -r)"; else yum install -y "kernel-devel-uname-r == $(uname -r)"; fi
27+
RUN yum localinstall files/kernel-rt-devel-${RTK}.rpm -y
28+
RUN mkdir -p /lib/modules/${RTK}
29+
RUN ln -s /usr/src/kernels/${RTK} /lib/modules/${RTK}/build
30+
31+
RUN cd $RTE_SDK && meson build && cd build && ninja
32+
33+
FROM centos:7.9.2009
34+
35+
ENV RTE_SDK=/root/dpdk-20.11/
36+
37+
WORKDIR /root/
38+
RUN yum install -y numactl-devel python3
39+
40+
COPY --from=builder /${RTE_SDK}/app/test-bbdev/test-bbdev.py .
41+
COPY --from=builder /${RTE_SDK}/app/test-bbdev/test_vectors/ .
42+
COPY --from=builder /${RTE_SDK}/build/app/dpdk-test-bbdev .
43+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (c) 2019 Intel Corporation
3+
4+
FROM centos:7 AS builder
5+
6+
ENV http_proxy=$http_proxy
7+
ENV https_proxy=$https_proxy
8+
ENV DPDK_FILENAME=dpdk-22.11.1.tar.xz
9+
ENV DPDK_LINK=http://fast.dpdk.org/rel/${DPDK_FILENAME}
10+
ENV RTE_SDK=/root/dpdk-stable-22.11.1/
11+
ENV RTK=4.18.0-372.40.1.rt7.197.el8_6.x86_64
12+
#ENV RTK=4.18.0-305.34.2.rt7.107.el8_4.x86_64
13+
14+
WORKDIR /root/
15+
COPY /files /root/files
16+
RUN yum update -y
17+
RUN yum install -y gcc-c++ make git xz-utils wget numactl-devel epel-release && yum install -y meson python3-pip
18+
RUN pip3 install pyelftools
19+
20+
RUN wget $DPDK_LINK
21+
RUN tar -xf $DPDK_FILENAME
22+
23+
# RT repo
24+
#RUN wget http://linuxsoft.cern.ch/cern/centos/7.9.2009/rt/CentOS-RT.repo -O /etc/yum.repos.d/CentOS-RT.repo
25+
#RUN wget http://linuxsoft.cern.ch/cern/centos/7.9.2009/os/x86_64/RPM-GPG-KEY-cern -O /etc/pki/rpm-gpg/RPM-GPG-KEY-cern
26+
27+
# install kernel sources to compile DPDK
28+
#RUN export isRT=$(uname -r | grep rt -c) && if [ $isRT = "1" ] ; then yum install -y "kernel-rt-devel-uname-r == $(uname -r)"; else yum install -y "kernel-devel-uname-r == $(uname -r)"; fi
29+
RUN yum localinstall files/kernel-rt-devel-${RTK}.rpm -y
30+
RUN mkdir -p /lib/modules/${RTK}
31+
RUN ln -s /usr/src/kernels/${RTK} /lib/modules/${RTK}/build
32+
33+
RUN cd $RTE_SDK && meson build && cd build && ninja
34+
35+
FROM centos:7.9.2009
36+
37+
ENV RTE_SDK=/root/dpdk-stable-22.11.1/
38+
39+
WORKDIR /root/
40+
RUN yum install -y numactl-devel python3
41+
42+
COPY --from=builder /${RTE_SDK}/app/test-bbdev/test-bbdev.py .
43+
COPY --from=builder /${RTE_SDK}/app/test-bbdev/test_vectors/ .
44+
COPY --from=builder /${RTE_SDK}/build/app/dpdk-test-bbdev .
45+

acc100/applications/fpga-sample-app/manifests/pod-bbdev-sample.app.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: v1
22
kind: Pod
33
metadata:
44
name: pod-bbdev-sample-app
5+
namespace: vran-acceleration-operators
56
spec:
67
containers:
78
- securityContext:
@@ -11,7 +12,8 @@ spec:
1112
- IPC_LOCK
1213
- SYS_NICE
1314
name: bbdev-sample-app
14-
image: quay.io/alosadag/bbdev-sample-app:4.18.0-305.34.2.rt7.107.el8_4.x86_64
15+
# image: quay.io/alosadag/bbdev-sample-app:4.18.0-305.34.2.rt7.107.el8_4.x86_64
16+
image: quay.io/alosadag/bbdev-sample-app:4.18.0-372.40.1.rt7.197.el8_6.x86_64
1517
command: [ "/bin/bash", "-c", "--" ]
1618
args: [ "while true; do sleep 300000; done;" ]
1719
volumeMounts:

0 commit comments

Comments
 (0)