- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
35 lines
1.2 KiB
Docker
35 lines
1.2 KiB
Docker
# SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
|
|
#---------------------------------------------------------------------
|
|
#
|
|
# Dockerfile for the Open-Air-Interface BUILD service
|
|
# Valid for Ubuntu 24.04
|
|
#
|
|
#---------------------------------------------------------------------
|
|
FROM nvidia/cuda:12.9.1-devel-ubuntu22.04 AS cuda-image
|
|
FROM ran-base:develop AS ran-tests
|
|
|
|
RUN rm -Rf /oai-ran
|
|
COPY --from=cuda-image /usr/local/cuda/ /usr/local/cuda/
|
|
|
|
# Set the LD_LIBRARY_PATH to ensure the system can find the copied libraries.
|
|
# This is crucial for applications that use CUDA.
|
|
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/targets/sbsa-linux/lib
|
|
ENV PATH=/usr/local/cuda/bin:$PATH
|
|
ENV C_INCLUDE_PATH=/usr/local/cuda/include
|
|
|
|
WORKDIR /oai-ran
|
|
COPY . .
|
|
|
|
WORKDIR /oai-ran/build
|
|
RUN cmake -GNinja -DENABLE_PHYSIM_TESTS=ON -DENABLE_TESTS=ON \
|
|
-DSANITIZE_UNDEFINED=OFF -DSANITIZE_ADDRESS=OFF \
|
|
-DCMAKE_C_FLAGS=-Werror -DCMAKE_CXX_FLAGS=-Werror \
|
|
-DPHYSIM_CHECK_FILES="ThresholdsCuda.cmake" \
|
|
-DCUDA_ENABLE=ON \
|
|
-DUSE_UNIFIED_MEMORY=ON \
|
|
-DUSE_ATS_MEMORY=OFF \
|
|
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/oai-ran/cmake_targets/ran_build/build \
|
|
.. && \
|
|
ninja nr_ulsim nr_dlsim
|