mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
This modification aims to improve health status detection by using PRACH IO as an indicator of the gNB's status (container is marked as "healthy" when the PRACH IO value in gNB nrL1_stats.log exceeds 0.0 dB.). The new condition accounts for scenarios where the container may not exit or produce error codes (e.g., “sleep” logs or "error code overflow" messages).
117 lines
4.2 KiB
Docker
117 lines
4.2 KiB
Docker
#/*
|
|
# * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
|
# * contributor license agreements. See the NOTICE file distributed with
|
|
# * this work for additional information regarding copyright ownership.
|
|
# * The OpenAirInterface Software Alliance licenses this file to You under
|
|
# * the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
|
# * except in compliance with the License.
|
|
# * You may obtain a copy of the License at
|
|
# *
|
|
# * http://www.openairinterface.org/?page_id=698
|
|
# *
|
|
# * Unless required by applicable law or agreed to in writing, software
|
|
# * distributed under the License is distributed on an "AS IS" BASIS,
|
|
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# * See the License for the specific language governing permissions and
|
|
# * limitations under the License.
|
|
# *-------------------------------------------------------------------------------
|
|
# * For more information about the OpenAirInterface (OAI) Software Alliance:
|
|
# * contact@openairinterface.org
|
|
# */
|
|
#---------------------------------------------------------------------
|
|
#
|
|
# Dockerfile for the Open-Air-Interface 7.2 Fronthaul
|
|
# Valid for Ubuntu22.04
|
|
#
|
|
#---------------------------------------------------------------------
|
|
|
|
FROM ran-base:latest AS gnb-base
|
|
|
|
FROM ran-build-fhi72:latest AS gnb-build
|
|
|
|
|
|
#start from scratch for target executable
|
|
FROM ubuntu:jammy AS oai-gnb
|
|
ARG BUILD_OPTION
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV TZ=Europe
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install --yes \
|
|
software-properties-common \
|
|
procps \
|
|
pkg-config \
|
|
libsctp1 \
|
|
tzdata \
|
|
libblas3 \
|
|
libconfig9 \
|
|
openssl \
|
|
net-tools \
|
|
iperf \
|
|
iproute2 \
|
|
iputils-ping \
|
|
gdb \
|
|
pciutils \
|
|
libpcap-dev \
|
|
xz-utils \
|
|
libnuma-dev \
|
|
python3 \
|
|
python3-six \
|
|
python3-requests \
|
|
libyaml-cpp-dev && \
|
|
# if the --sanitize option was used to build, additional packages are required
|
|
/bin/bash -c 'if [[ "$BUILD_OPTION" = "--sanitize" ]]; then DEBIAN_FRONTEND=noninteractive apt-get install --yes \
|
|
libasan5 \
|
|
libubsan1 \
|
|
liblapacke; fi' && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /opt/oai-gnb/bin
|
|
COPY --from=gnb-build \
|
|
/oai-ran/cmake_targets/ran_build/build/nr-softmodem ./
|
|
COPY ./docker/scripts/gnb_entrypoint.sh ./entrypoint.sh
|
|
COPY ./docker/scripts/check-prach-io.sh ./check-prach-io.sh
|
|
|
|
COPY --from=gnb-build \
|
|
/oai-ran/cmake_targets/ran_build/build/librfsimulator.so \
|
|
/oai-ran/cmake_targets/ran_build/build/liboai_transpro.so \
|
|
/oai-ran/cmake_targets/ran_build/build/libcoding.so \
|
|
/oai-ran/cmake_targets/ran_build/build/libparams_libconfig.so \
|
|
/oai-ran/cmake_targets/ran_build/build/libdfts.so \
|
|
/oai-ran/cmake_targets/ran_build/build/libldpc*.so \
|
|
/oai-ran/cmake_targets/ran_build/build/libtelnetsrv.so \
|
|
/oai-ran/cmake_targets/ran_build/build/libtelnetsrv_ci.so \
|
|
/oai-ran/cmake_targets/ran_build/build/libparams_yaml.so \
|
|
/usr/local/lib/
|
|
|
|
## Libxran library
|
|
COPY --from=gnb-build \
|
|
/opt/phy/fhi_lib/lib/build/libxran.so \
|
|
/opt/phy/fhi_lib/lib/build/
|
|
|
|
## Copy all DPDK libraries as liboran_fhlib_5g.so require most of them
|
|
COPY --from=gnb-build /usr/local/lib/x86_64-linux-gnu /usr/local/lib/x86_64-linux-gnu/
|
|
|
|
## Copy E2 SM models
|
|
COPY --from=gnb-build /usr/local/lib/flexric /usr/local/lib/flexric
|
|
|
|
RUN ldconfig && \
|
|
echo "---- ldd on nr-softmodem ----" && \
|
|
ldd /opt/oai-gnb/bin/nr-softmodem && \
|
|
echo "---- ldd on shared libraries ----" && \
|
|
ldd /usr/local/lib/librfsimulator.so \
|
|
/usr/local/lib/liboai_transpro.so \
|
|
/usr/local/lib/libcoding.so \
|
|
/usr/local/lib/libparams_libconfig.so \
|
|
/usr/local/lib/libdfts.so \
|
|
/usr/local/lib/libldpc*.so \
|
|
/usr/local/lib/libtelnetsrv.so \
|
|
/usr/local/lib/libtelnetsrv_ci.so \
|
|
/opt/phy/fhi_lib/lib/build/libxran.so
|
|
|
|
WORKDIR /opt/oai-gnb
|
|
COPY --from=gnb-base /tini /tini
|
|
ENTRYPOINT ["/tini", "-v", "--", "/opt/oai-gnb/bin/entrypoint.sh"]
|
|
CMD ["/opt/oai-gnb/bin/nr-softmodem"]
|