Commit 09fa32b0 authored by Robert Schmidt's avatar Robert Schmidt

Upgrade CI images to Ubuntu 22

This updates all images in the CI to Ubuntu 22. It also updates
corresponding documentation. Remove python(2) from the image, as it is
not needed. Update documentation.

It seems that the gcc coming in Ubuntu 22 does not like
stack-protector-strong, so remove it as well.
parent cb8198c2
...@@ -286,7 +286,7 @@ class Containerize(): ...@@ -286,7 +286,7 @@ class Containerize():
self.host = result.group(0) self.host = result.group(0)
if self.host == 'Ubuntu': if self.host == 'Ubuntu':
self.cli = 'docker' self.cli = 'docker'
self.dockerfileprefix = '.ubuntu20' self.dockerfileprefix = '.ubuntu22'
self.cliBuildOptions = '' self.cliBuildOptions = ''
elif self.host == 'Red Hat': elif self.host == 'Red Hat':
self.cli = 'sudo podman' self.cli = 'sudo podman'
...@@ -677,7 +677,7 @@ class Containerize(): ...@@ -677,7 +677,7 @@ class Containerize():
return False return False
# build ran-unittests image # build ran-unittests image
dockerfile = "ci-scripts/docker/Dockerfile.unittest.ubuntu20" dockerfile = "ci-scripts/docker/Dockerfile.unittest.ubuntu22"
ret = cmd.run(f'docker build --progress=plain --tag ran-unittests:{baseTag} --file {dockerfile} . &> {lSourcePath}/cmake_targets/log/unittest-build.log') ret = cmd.run(f'docker build --progress=plain --tag ran-unittests:{baseTag} --file {dockerfile} . &> {lSourcePath}/cmake_targets/log/unittest-build.log')
if ret.returncode != 0: if ret.returncode != 0:
logging.error(f'Cannot build unit tests') logging.error(f'Cannot build unit tests')
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
# Dockerfile for the Open-Air-Interface BUILD service # Dockerfile for the Open-Air-Interface BUILD service
# Valid for Ubuntu 20.04 # Valid for Ubuntu 22.04
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</tr> </tr>
</table> </table>
This page is only valid for an `Ubuntu18` host. This page is only valid for an `Ubuntu 22` host.
**Table of Contents** **Table of Contents**
......
...@@ -12,10 +12,8 @@ ...@@ -12,10 +12,8 @@
</tr> </tr>
</table> </table>
This page is valid for an `Ubuntu18` host. It is also valid for `Ubuntu 22.04`.
It is also valid for `Ubuntu 20.04`.
This tutorial is only valid once this file is merged into the `develop` branch.
# 1. Adapt the `docker-compose` to your environment # # 1. Adapt the `docker-compose` to your environment #
The yaml file is in the following directory: `ci-scripts/yaml_files/5g_l2sim_tdd` The yaml file is in the following directory: `ci-scripts/yaml_files/5g_l2sim_tdd`
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</tr> </tr>
</table> </table>
This page is only valid for an `Ubuntu18` host. This page is only valid for an `Ubuntu 22` host.
**NOTE: this version (2023-01-27) has been updated for the `v1.5.0` version of the `OAI 5G CN`.** **NOTE: this version (2023-01-27) has been updated for the `v1.5.0` version of the `OAI 5G CN`.**
......
...@@ -202,8 +202,8 @@ With the nvIPC sources in the project directory, the docker image can be built. ...@@ -202,8 +202,8 @@ With the nvIPC sources in the project directory, the docker image can be built.
In order to build the final image, there is an intermediary image to be built (ran-base) In order to build the final image, there is an intermediary image to be built (ran-base)
```bash ```bash
~$ cd ~/openairinterface5g/ ~$ cd ~/openairinterface5g/
~/openairinterface5g$ docker build . -f docker/Dockerfile.base.ubuntu20 --tag ran-base:latest ~/openairinterface5g$ docker build . -f docker/Dockerfile.base.ubuntu22 --tag ran-base:latest
~/openairinterface5g$ docker build . -f docker/Dockerfile.gNB.aerial.ubuntu20 --tag oai-gnb-aerial:latest ~/openairinterface5g$ docker build . -f docker/Dockerfile.gNB.aerial.ubuntu22 --tag oai-gnb-aerial:latest
``` ```
......
...@@ -112,16 +112,16 @@ information on how the images are built. ...@@ -112,16 +112,16 @@ information on how the images are built.
- [RAN-Ubuntu18-Image-Builder](https://jenkins-oai.eurecom.fr/job/RAN-Ubuntu18-Image-Builder/) - [RAN-Ubuntu18-Image-Builder](https://jenkins-oai.eurecom.fr/job/RAN-Ubuntu18-Image-Builder/)
~BUILD-ONLY ~4G-LTE ~5G-NR ~BUILD-ONLY ~4G-LTE ~5G-NR
- run formatting check from `ci-scripts/docker/Dockerfile.formatting.bionic` - run formatting check from `ci-scripts/docker/Dockerfile.formatting.bionic`
- obelix: Ubuntu 20 image build using docker (Note: builds U20 images while pipeline is named U18!) - obelix: Ubuntu 22 image build using docker (Note: builds U22 images while pipeline is named U18!)
- base image from `Dockerfile.base.ubuntu20` - base image from `Dockerfile.base.ubuntu22`
- build image from `Dockerfile.build.ubuntu20`, followed by - build image from `Dockerfile.build.ubuntu22`, followed by
- target image from `Dockerfile.eNB.ubuntu20` - target image from `Dockerfile.eNB.ubuntu22`
- target image from `Dockerfile.gNB.ubuntu20` - target image from `Dockerfile.gNB.ubuntu22`
- target image from `Dockerfile.nr-cuup.ubuntu20` - target image from `Dockerfile.nr-cuup.ubuntu22`
- target image from `Dockerfile.nrUE.ubuntu20` - target image from `Dockerfile.nrUE.ubuntu22`
- target image from `Dockerfile.lteUE.ubuntu20` - target image from `Dockerfile.lteUE.ubuntu22`
- target image from `Dockerfile.lteRU.ubuntu20` - target image from `Dockerfile.lteRU.ubuntu22`
- build unit tests from `ci-scripts/docker/Dockerfile.unittest.ubuntu20`, and run them - build unit tests from `ci-scripts/docker/Dockerfile.unittest.ubuntu22`, and run them
#### Image Test pipelines #### Image Test pipelines
......
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
# Dockerfile for the Open-Air-Interface BUILD service # Dockerfile for the Open-Air-Interface BUILD service
# Valid for Ubuntu 20.04 # Valid for Ubuntu 22.04
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
FROM ubuntu:focal AS ran-base FROM ubuntu:jammy AS ran-base
ARG NEEDED_GIT_PROXY ARG NEEDED_GIT_PROXY
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
# Dockerfile for the Open-Air-Interface BUILD service # Dockerfile for the Open-Air-Interface BUILD service
# Valid for Ubuntu 20.04 # Valid for Ubuntu 22.04
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
...@@ -42,6 +42,6 @@ RUN /bin/sh oaienv && \ ...@@ -42,6 +42,6 @@ RUN /bin/sh oaienv && \
-w USRP -t Ethernet \ -w USRP -t Ethernet \
--build-e2 --cmake-opt -DXAPP_MULTILANGUAGE=OFF \ --build-e2 --cmake-opt -DXAPP_MULTILANGUAGE=OFF \
--noavx512 \ --noavx512 \
--cmake-opt -DCMAKE_C_FLAGS="-Werror -fstack-protector-strong" --cmake-opt -DCMAKE_CXX_FLAGS="-Werror -fstack-protector-strong" $BUILD_OPTION && \ --cmake-opt -DCMAKE_C_FLAGS="-Werror" --cmake-opt -DCMAKE_CXX_FLAGS="-Werror" $BUILD_OPTION && \
# Mainly to see if the sanitize option was perfectly executed # Mainly to see if the sanitize option was perfectly executed
ldd ran_build/build/nr-softmodem ldd ran_build/build/nr-softmodem
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
# Dockerfile for the Open-Air-Interface BUILD service # Dockerfile for the Open-Air-Interface BUILD service
# Valid for Ubuntu 20.04 # Valid for Ubuntu 22.04
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
...@@ -31,7 +31,7 @@ FROM ran-build:latest AS enb-build ...@@ -31,7 +31,7 @@ FROM ran-build:latest AS enb-build
#start from scratch for target executable #start from scratch for target executable
FROM ubuntu:focal as oai-enb FROM ubuntu:jammy as oai-enb
ARG BUILD_OPTION ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
...@@ -42,14 +42,14 @@ RUN apt-get update && \ ...@@ -42,14 +42,14 @@ RUN apt-get update && \
software-properties-common \ software-properties-common \
procps \ procps \
libsctp1 \ libsctp1 \
libboost-chrono1.71.0 \ libboost-chrono1.74.0 \
libboost-date-time1.71.0 \ libboost-date-time1.74.0 \
libboost-filesystem1.71.0 \ libboost-filesystem1.74.0 \
libboost-regex1.71.0 \ libboost-regex1.74.0 \
libboost-serialization1.71.0 \ libboost-serialization1.74.0 \
libboost-thread1.71.0 \ libboost-thread1.74.0 \
libboost-system1.71.0 \ libboost-system1.74.0 \
libboost-program-options1.71.0 \ libboost-program-options1.74.0 \
tzdata \ tzdata \
libblas3 \ libblas3 \
libatlas3-base \ libatlas3-base \
...@@ -61,7 +61,6 @@ RUN apt-get update && \ ...@@ -61,7 +61,6 @@ RUN apt-get update && \
iputils-ping \ iputils-ping \
iproute2 \ iproute2 \
gdb \ gdb \
python \
python3 \ python3 \
python3-six \ python3-six \
python3-requests \ python3-requests \
......
...@@ -60,7 +60,7 @@ RUN /bin/sh oaienv && \ ...@@ -60,7 +60,7 @@ RUN /bin/sh oaienv && \
#start from scratch for target executable #start from scratch for target executable
FROM ubuntu:focal as oai-gnb-aerial FROM ubuntu:jammy as oai-gnb-aerial
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe ENV TZ=Europe
......
...@@ -60,7 +60,7 @@ RUN /bin/sh oaienv && \ ...@@ -60,7 +60,7 @@ RUN /bin/sh oaienv && \
#start from scratch for target executable #start from scratch for target executable
FROM ubuntu:focal as oai-gnb-aerial FROM ubuntu:jammy as oai-gnb-aerial
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe ENV TZ=Europe
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
# Dockerfile for the Open-Air-Interface BUILD service # Dockerfile for the Open-Air-Interface BUILD service
# Valid for Ubuntu18.04 # Valid for Ubuntu 22.04
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
......
...@@ -31,7 +31,7 @@ FROM ran-build:latest AS gnb-build ...@@ -31,7 +31,7 @@ FROM ran-build:latest AS gnb-build
#start from scratch for target executable #start from scratch for target executable
FROM ubuntu:focal as oai-gnb FROM ubuntu:jammy as oai-gnb
ARG BUILD_OPTION ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
...@@ -42,14 +42,14 @@ RUN apt-get update && \ ...@@ -42,14 +42,14 @@ RUN apt-get update && \
software-properties-common \ software-properties-common \
procps \ procps \
libsctp1 \ libsctp1 \
libboost-chrono1.71.0 \ libboost-chrono1.74.0 \
libboost-date-time1.71.0 \ libboost-date-time1.74.0 \
libboost-filesystem1.71.0 \ libboost-filesystem1.74.0 \
libboost-regex1.71.0 \ libboost-regex1.74.0 \
libboost-serialization1.71.0 \ libboost-serialization1.74.0 \
libboost-thread1.71.0 \ libboost-thread1.74.0 \
libboost-system1.71.0 \ libboost-system1.74.0 \
libboost-program-options1.71.0 \ libboost-program-options1.74.0 \
tzdata \ tzdata \
libblas3 \ libblas3 \
libatlas3-base \ libatlas3-base \
...@@ -61,7 +61,6 @@ RUN apt-get update && \ ...@@ -61,7 +61,6 @@ RUN apt-get update && \
iproute2 \ iproute2 \
iputils-ping \ iputils-ping \
gdb \ gdb \
python \
python3 \ python3 \
python3-six \ python3-six \
python3-requests \ python3-requests \
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
# Dockerfile for the Open-Air-Interface BUILD service # Dockerfile for the Open-Air-Interface BUILD service
# Valid for Ubuntu 20.04 # Valid for Ubuntu 22.04
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
...@@ -31,7 +31,7 @@ FROM ran-build:latest AS ru-build ...@@ -31,7 +31,7 @@ FROM ran-build:latest AS ru-build
#start from scratch for target executable #start from scratch for target executable
FROM ubuntu:focal as oai-lte-ru FROM ubuntu:jammy as oai-lte-ru
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
...@@ -46,7 +46,6 @@ RUN apt-get update && \ ...@@ -46,7 +46,6 @@ RUN apt-get update && \
libconfig9 \ libconfig9 \
net-tools \ net-tools \
gdb \ gdb \
python \
python3 \ python3 \
python3-six \ python3-six \
python3-requests \ python3-requests \
...@@ -74,13 +73,13 @@ COPY --from=ru-base /usr/local/lib/libuhd.so.4.4.0 /usr/local/lib ...@@ -74,13 +73,13 @@ COPY --from=ru-base /usr/local/lib/libuhd.so.4.4.0 /usr/local/lib
COPY --from=ru-base /usr/local/lib/uhd/utils/uhd_images_downloader.py /opt/oai-lte-ru/bin COPY --from=ru-base /usr/local/lib/uhd/utils/uhd_images_downloader.py /opt/oai-lte-ru/bin
COPY --from=ru-base \ COPY --from=ru-base \
/usr/lib/x86_64-linux-gnu/libboost_chrono.so.1.71.0 \ /usr/lib/x86_64-linux-gnu/libboost_chrono.so.1.74.0 \
/usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.71.0 \ /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.74.0 \
/usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 \ /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 \
/usr/lib/x86_64-linux-gnu/libboost_regex.so.1.71.0 \ /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 \
/usr/lib/x86_64-linux-gnu/libboost_serialization.so.1.71.0 \ /usr/lib/x86_64-linux-gnu/libboost_serialization.so.1.74.0 \
/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.71.0 \ /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.74.0 \
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 \ /usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0 \
/usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/
RUN /bin/bash -c "ln -s /usr/local/lib/liboai_usrpdevif.so /usr/local/lib/liboai_device.so" && \ RUN /bin/bash -c "ln -s /usr/local/lib/liboai_usrpdevif.so /usr/local/lib/liboai_device.so" && \
......
...@@ -31,7 +31,7 @@ FROM ran-build:latest AS lte-ue-build ...@@ -31,7 +31,7 @@ FROM ran-build:latest AS lte-ue-build
#start from scratch for target executable #start from scratch for target executable
FROM ubuntu:focal as oai-lte-ue FROM ubuntu:jammy as oai-lte-ue
ARG BUILD_OPTION ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
...@@ -42,21 +42,20 @@ RUN apt-get update && \ ...@@ -42,21 +42,20 @@ RUN apt-get update && \
software-properties-common \ software-properties-common \
procps \ procps \
libsctp1 \ libsctp1 \
libboost-chrono1.71.0 \ libboost-chrono1.74.0 \
libboost-date-time1.71.0 \ libboost-date-time1.74.0 \
libboost-filesystem1.71.0 \ libboost-filesystem1.74.0 \
libboost-regex1.71.0 \ libboost-regex1.74.0 \
libboost-serialization1.71.0 \ libboost-serialization1.74.0 \
libboost-thread1.71.0 \ libboost-thread1.74.0 \
libboost-system1.71.0 \ libboost-system1.74.0 \
libboost-program-options1.71.0 \ libboost-program-options1.74.0 \
tzdata \ tzdata \
liblapacke \ liblapacke \
libatlas3-base \ libatlas3-base \
libconfig9 \ libconfig9 \
openssl \ openssl \
net-tools \ net-tools \
python \
python3 \ python3 \
python3-six \ python3-six \
python3-requests \ python3-requests \
......
...@@ -30,7 +30,7 @@ FROM ran-base:latest as gnb-base ...@@ -30,7 +30,7 @@ FROM ran-base:latest as gnb-base
FROM ran-build:latest AS gnb-build FROM ran-build:latest AS gnb-build
FROM ubuntu:focal as oai-nr-cuup FROM ubuntu:jammy as oai-nr-cuup
ARG BUILD_OPTION ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe ENV TZ=Europe
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# #
# Dockerfile for the Open-Air-Interface BUILD service # Dockerfile for the Open-Air-Interface BUILD service
# Valid for Ubuntu 20.04 # Valid for Ubuntu 22.04
# #
#--------------------------------------------------------------------- #---------------------------------------------------------------------
...@@ -31,7 +31,7 @@ FROM ran-build:latest AS nr-ue-build ...@@ -31,7 +31,7 @@ FROM ran-build:latest AS nr-ue-build
#start from scratch for target executable #start from scratch for target executable
FROM ubuntu:focal as oai-nr-ue FROM ubuntu:jammy as oai-nr-ue
ARG BUILD_OPTION ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
...@@ -42,14 +42,14 @@ RUN apt-get update && \ ...@@ -42,14 +42,14 @@ RUN apt-get update && \
software-properties-common \ software-properties-common \
procps \ procps \
libsctp1 \ libsctp1 \
libboost-chrono1.71.0 \ libboost-chrono1.74.0 \
libboost-date-time1.71.0 \ libboost-date-time1.74.0 \
libboost-filesystem1.71.0 \ libboost-filesystem1.74.0 \
libboost-regex1.71.0 \ libboost-regex1.74.0 \
libboost-serialization1.71.0 \ libboost-serialization1.74.0 \
libboost-thread1.71.0 \ libboost-thread1.74.0 \
libboost-system1.71.0 \ libboost-system1.74.0 \
libboost-program-options1.71.0 \ libboost-program-options1.74.0 \
tzdata \ tzdata \
liblapacke \ liblapacke \
libatlas3-base \ libatlas3-base \
...@@ -57,7 +57,6 @@ RUN apt-get update && \ ...@@ -57,7 +57,6 @@ RUN apt-get update && \
openssl \ openssl \
net-tools \ net-tools \
gdb \ gdb \
python \
python3 \ python3 \
python3-six \ python3-six \
python3-requests \ python3-requests \
......
...@@ -75,18 +75,18 @@ Targets can be: ...@@ -75,18 +75,18 @@ Targets can be:
The currently-supported OS are: The currently-supported OS are:
- `rhel9` for Red Hat Entreprise Linux (including images for an OpenShift cluster) - `rhel9` for Red Hat Entreprise Linux (including images for an OpenShift cluster)
- `ubuntu20` for Ubuntu 20.04 LTS - `ubuntu22` for Ubuntu 22.04 LTS
- `rocky` for Rocky-Linux 8.7 - `rocky` for Rocky-Linux 8.7
For more details regarding the build on an Openshift Cluster, see [OpenShift README](../openshift/README.md). For more details regarding the build on an Openshift Cluster, see [OpenShift README](../openshift/README.md).
# 3. Building using `docker` under Ubuntu 20.04 # # 3. Building using `docker` under Ubuntu 22.04 #
## 3.1. Pre-requisites ## ## 3.1. Pre-requisites ##
* `git` installed * `git` installed
* `docker-ce` installed * `docker-ce` installed
* Pulling `ubuntu:focal` from DockerHub * Pulling `ubuntu:jammy` from DockerHub
## 3.2. Building the shared images ## ## 3.2. Building the shared images ##
...@@ -96,8 +96,8 @@ There are two shared images: one that has all dependencies, and a second that co ...@@ -96,8 +96,8 @@ There are two shared images: one that has all dependencies, and a second that co
git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
cd openairinterface5g cd openairinterface5g
git checkout develop git checkout develop
docker build --target ran-base --tag ran-base:latest --file docker/Dockerfile.base.ubuntu20 . docker build --target ran-base --tag ran-base:latest --file docker/Dockerfile.base.ubuntu22 .
docker build --target ran-build --tag ran-build:latest --file docker/Dockerfile.build.ubuntu20 . docker build --target ran-build --tag ran-build:latest --file docker/Dockerfile.build.ubuntu22 .
``` ```
After building both: After building both:
...@@ -115,12 +115,12 @@ Note that the steps are identical for `rocky-linux`. ...@@ -115,12 +115,12 @@ Note that the steps are identical for `rocky-linux`.
### 3.2.1. Additional build otions ### 3.2.1. Additional build otions
This is only available for the Ubuntu-20 version. This is only available for the Ubuntu version of Dockerfiles.
You can, for example, create a `sanitizer` version of the ran-build image. You can, for example, create a `sanitizer` version of the ran-build image.
```bash ```bash
docker build --target ran-build --tag ran-build:latest --file docker/Dockerfile.build.ubuntu20 --build-arg "BUILD_OPTION=--sanitize" . docker build --target ran-build --tag ran-build:latest --file docker/Dockerfile.build.ubuntu22 --build-arg "BUILD_OPTION=--sanitize" .
``` ```
Currently the `--sanitize` option for `build_oai` enables: Currently the `--sanitize` option for `build_oai` enables:
...@@ -146,7 +146,7 @@ You can also use this docker build arguments to pass any available option(s) on ...@@ -146,7 +146,7 @@ You can also use this docker build arguments to pass any available option(s) on
For example, the eNB: For example, the eNB:
```bash ```bash
docker build --target oai-enb --tag oai-enb:latest --file docker/Dockerfile.eNB.ubuntu20 . docker build --target oai-enb --tag oai-enb:latest --file docker/Dockerfile.eNB.ubuntu22 .
``` ```
After a while: After a while:
...@@ -171,7 +171,7 @@ Note that the steps are identical for `rocky-linux`. ...@@ -171,7 +171,7 @@ Note that the steps are identical for `rocky-linux`.
If you have used the sanitizer option, then you should also pass it when building the target image: If you have used the sanitizer option, then you should also pass it when building the target image:
```bash ```bash
docker build --target oai-gnb --tag oai-gnb:latest --file docker/Dockerfile.gNB.ubuntu20 --build-arg "BUILD_OPTION=--sanitize" . docker build --target oai-gnb --tag oai-gnb:latest --file docker/Dockerfile.gNB.ubuntu22 --build-arg "BUILD_OPTION=--sanitize" .
``` ```
Normally the target image will be around 200 Mbytes bigger. Normally the target image will be around 200 Mbytes bigger.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment