Upgrade to Ubuntu jammy so we have new limesuite and soapysdr in system repo. Use fixed v2.1 base. Build UHD from source so that TDD patch will be applied. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
54 lines
2.3 KiB
Plaintext
54 lines
2.3 KiB
Plaintext
# BSD 2-Clause License
|
|
|
|
# Copyright (c) 2020, Supreeth Herle
|
|
# All rights reserved.
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
# modification, are permitted provided that the following conditions are met:
|
|
|
|
# 1. Redistributions of source code must retain the above copyright notice, this
|
|
# list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
# this list of conditions and the following disclaimer in the documentation
|
|
# and/or other materials provided with the distribution.
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
FROM ubuntu:jammy
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV BUILD_UHD_FROM_SOURCE=True
|
|
ENV UHD_VERSION=4.4.0.0
|
|
|
|
# Install updates and dependencies
|
|
RUN apt-get update && \
|
|
apt-get -y install build-essential cmake git subversion software-properties-common apt-utils unzip xxd iproute2
|
|
|
|
# Install SoapySDR and Lime Suite
|
|
RUN apt-get update && \
|
|
apt-get -y install limesuite liblimesuite-dev limesuite-udev \
|
|
soapysdr-tools soapysdr-module-lms7
|
|
|
|
# Cloning RAN repository (eNB RAN + UE RAN)
|
|
RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git && \
|
|
cd openairinterface5g/ && git checkout v2.1.0
|
|
|
|
# Set the working directory to openairinterface5g
|
|
WORKDIR openairinterface5g
|
|
|
|
RUN . ./oaienv && cd cmake_targets && \
|
|
./build_oai -I -w USRP --gNB --verbose-compile
|
|
|
|
CMD . ./oaienv && /mnt/oai/oai_init.sh && cd cmake_targets/ran_build/build && \
|
|
./nr-softmodem -O $OPENAIR_DIR/targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band41.fr1.52PRB.usrpb210.conf --sa -d
|