mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
feat(CI): Build FHI with K release
Update the dockerfiles for building DPDK 24.11.4 and xran K release. Signed-off-by: Teodora Vladić <teodora.vladic@openairinterface.org>
This commit is contained in:
@@ -45,7 +45,9 @@ RUN rm -f /etc/rhsm-host && \
|
|||||||
gcc-toolset-13-gcc-c++ \
|
gcc-toolset-13-gcc-c++ \
|
||||||
# python3-pip and pyyaml are used for conf template generation
|
# python3-pip and pyyaml are used for conf template generation
|
||||||
python3-pip && \
|
python3-pip && \
|
||||||
pip3 install --ignore-installed pyyaml && \
|
pip3 install --ignore-installed \
|
||||||
|
pyyaml \
|
||||||
|
pyelftools && \
|
||||||
echo "/usr/local/lib" > /etc/ld.so.conf.d/local-lib.conf && \
|
echo "/usr/local/lib" > /etc/ld.so.conf.d/local-lib.conf && \
|
||||||
echo "/usr/local/lib64" >> /etc/ld.so.conf.d/local-lib.conf
|
echo "/usr/local/lib64" >> /etc/ld.so.conf.d/local-lib.conf
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
FROM ran-base:latest AS ran-base
|
FROM ran-base:latest AS ran-base
|
||||||
|
|
||||||
|
ARG xran_VERSION=11.1.1
|
||||||
ARG E2AP_VERSION=E2AP_V3
|
ARG E2AP_VERSION=E2AP_V3
|
||||||
ARG KPM_VERSION=KPM_V3_00
|
ARG KPM_VERSION=KPM_V3_00
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
@@ -20,7 +21,8 @@ RUN apt-get update && \
|
|||||||
wget \
|
wget \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
libnuma-dev && \
|
libnuma-dev \
|
||||||
|
python3-pyelftools && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN rm -Rf /oai-ran
|
RUN rm -Rf /oai-ran
|
||||||
@@ -28,9 +30,9 @@ WORKDIR /oai-ran
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
## Download and build DPDK
|
## Download and build DPDK
|
||||||
RUN wget http://fast.dpdk.org/rel/dpdk-20.11.9.tar.xz && \
|
RUN wget --no-verbose http://fast.dpdk.org/rel/dpdk-24.11.4.tar.xz && \
|
||||||
tar -xvf dpdk-20.11.9.tar.xz && \
|
tar -xf dpdk-24.11.4.tar.xz && \
|
||||||
cd dpdk-stable-20.11.9 && \
|
cd dpdk-stable-24.11.4 && \
|
||||||
meson setup -Dmachine=default build && \
|
meson setup -Dmachine=default build && \
|
||||||
ninja -C build && \
|
ninja -C build && \
|
||||||
ninja install -C build
|
ninja install -C build
|
||||||
@@ -38,10 +40,9 @@ RUN wget http://fast.dpdk.org/rel/dpdk-20.11.9.tar.xz && \
|
|||||||
## Build Fronthaul library
|
## Build Fronthaul library
|
||||||
RUN git clone https://github.com/openairinterface/o-du-phy.git /opt/phy && \
|
RUN git clone https://github.com/openairinterface/o-du-phy.git /opt/phy && \
|
||||||
cd /opt/phy && \
|
cd /opt/phy && \
|
||||||
git checkout oran_f_release_v1.0 &&\
|
git checkout $xran_VERSION &&\
|
||||||
git apply /oai-ran/cmake_targets/tools/oran_fhi_integration_patches/F/oaioran_F.patch && \
|
|
||||||
cd /opt/phy/fhi_lib/lib && \
|
cd /opt/phy/fhi_lib/lib && \
|
||||||
TARGET=armv8 WIRELESS_SDK_TOOLCHAIN=gcc RTE_SDK=/oai-ran/dpdk-stable-20.11.9/ XRAN_DIR=/opt/phy/fhi_lib make XRAN_LIB_SO=1
|
TARGET=armv8 WIRELESS_SDK_TOOLCHAIN=gcc RTE_SDK=/oai-ran/dpdk-stable-24.11.4/ XRAN_DIR=/opt/phy/fhi_lib make XRAN_LIB_SO=1
|
||||||
|
|
||||||
## Build Arm RAN Acceleration Library
|
## Build Arm RAN Acceleration Library
|
||||||
RUN git clone https://git.gitlab.arm.com/networking/ral.git /opt/ral && \
|
RUN git clone https://git.gitlab.arm.com/networking/ral.git /opt/ral && \
|
||||||
|
|||||||
@@ -14,10 +14,12 @@ RUN rm -Rf /oai-ran
|
|||||||
WORKDIR /oai-ran
|
WORKDIR /oai-ran
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
ARG xran_VERSION=11.1.1
|
||||||
|
|
||||||
## Download and build DPDK
|
## Download and build DPDK
|
||||||
RUN wget http://fast.dpdk.org/rel/dpdk-20.11.9.tar.xz && \
|
RUN wget --no-verbose http://fast.dpdk.org/rel/dpdk-24.11.4.tar.xz && \
|
||||||
tar -xvf dpdk-20.11.9.tar.xz && \
|
tar -xf dpdk-24.11.4.tar.xz && \
|
||||||
cd dpdk-stable-20.11.9 && \
|
cd dpdk-stable-24.11.4 && \
|
||||||
meson build && \
|
meson build && \
|
||||||
ninja -C build && \
|
ninja -C build && \
|
||||||
ninja install -C build
|
ninja install -C build
|
||||||
@@ -25,10 +27,9 @@ RUN wget http://fast.dpdk.org/rel/dpdk-20.11.9.tar.xz && \
|
|||||||
## Build Fronthaul library
|
## Build Fronthaul library
|
||||||
RUN git clone https://github.com/openairinterface/o-du-phy.git /opt/phy && \
|
RUN git clone https://github.com/openairinterface/o-du-phy.git /opt/phy && \
|
||||||
cd /opt/phy && \
|
cd /opt/phy && \
|
||||||
git checkout oran_f_release_v1.0 &&\
|
git checkout $xran_VERSION &&\
|
||||||
git apply /oai-ran/cmake_targets/tools/oran_fhi_integration_patches/F/oaioran_F.patch && \
|
|
||||||
cd /opt/phy/fhi_lib/lib && \
|
cd /opt/phy/fhi_lib/lib && \
|
||||||
WIRELESS_SDK_TOOLCHAIN=gcc RTE_SDK=/oai-ran/dpdk-stable-20.11.9/ XRAN_DIR=/opt/phy/fhi_lib make XRAN_LIB_SO=1
|
WIRELESS_SDK_TOOLCHAIN=gcc RTE_SDK=/oai-ran/dpdk-stable-24.11.4/ XRAN_DIR=/opt/phy/fhi_lib make XRAN_LIB_SO=1
|
||||||
|
|
||||||
FROM ran-base AS ran-build-fhi72
|
FROM ran-base AS ran-build-fhi72
|
||||||
ARG E2AP_VERSION=E2AP_V3
|
ARG E2AP_VERSION=E2AP_V3
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
FROM ran-base:latest AS ran-base
|
FROM ran-base:latest AS ran-base
|
||||||
|
|
||||||
|
ARG xran_VERSION=11.1.1
|
||||||
ARG E2AP_VERSION=E2AP_V3
|
ARG E2AP_VERSION=E2AP_V3
|
||||||
ARG KPM_VERSION=KPM_V3_00
|
ARG KPM_VERSION=KPM_V3_00
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
@@ -20,7 +21,8 @@ RUN apt-get update && \
|
|||||||
wget \
|
wget \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
libnuma-dev && \
|
libnuma-dev \
|
||||||
|
python3-pyelftools && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN rm -Rf /oai-ran
|
RUN rm -Rf /oai-ran
|
||||||
@@ -28,9 +30,9 @@ WORKDIR /oai-ran
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
## Download and build DPDK
|
## Download and build DPDK
|
||||||
RUN wget http://fast.dpdk.org/rel/dpdk-20.11.9.tar.xz && \
|
RUN wget --no-verbose http://fast.dpdk.org/rel/dpdk-24.11.4.tar.xz && \
|
||||||
tar -xvf dpdk-20.11.9.tar.xz && \
|
tar -xf dpdk-24.11.4.tar.xz && \
|
||||||
cd dpdk-stable-20.11.9 && \
|
cd dpdk-stable-24.11.4 && \
|
||||||
meson build && \
|
meson build && \
|
||||||
ninja -C build && \
|
ninja -C build && \
|
||||||
ninja install -C build
|
ninja install -C build
|
||||||
@@ -38,10 +40,9 @@ RUN wget http://fast.dpdk.org/rel/dpdk-20.11.9.tar.xz && \
|
|||||||
## Build Fronthaul library
|
## Build Fronthaul library
|
||||||
RUN git clone https://github.com/openairinterface/o-du-phy.git /opt/phy && \
|
RUN git clone https://github.com/openairinterface/o-du-phy.git /opt/phy && \
|
||||||
cd /opt/phy && \
|
cd /opt/phy && \
|
||||||
git checkout oran_f_release_v1.0 &&\
|
git checkout $xran_VERSION &&\
|
||||||
git apply /oai-ran/cmake_targets/tools/oran_fhi_integration_patches/F/oaioran_F.patch && \
|
|
||||||
cd /opt/phy/fhi_lib/lib && \
|
cd /opt/phy/fhi_lib/lib && \
|
||||||
WIRELESS_SDK_TOOLCHAIN=gcc RTE_SDK=/oai-ran/dpdk-stable-20.11.9/ XRAN_DIR=/opt/phy/fhi_lib make XRAN_LIB_SO=1
|
WIRELESS_SDK_TOOLCHAIN=gcc RTE_SDK=/oai-ran/dpdk-stable-24.11.4/ XRAN_DIR=/opt/phy/fhi_lib make XRAN_LIB_SO=1
|
||||||
|
|
||||||
FROM ran-base AS ran-build-fhi72
|
FROM ran-base AS ran-build-fhi72
|
||||||
## Build and install OAI
|
## Build and install OAI
|
||||||
|
|||||||
Reference in New Issue
Block a user