Docker:代理编译镜像

下载镜像

git clone --branch ATB1.0_integration https://gitlab.eurecom.fr/oai/openairinterface5g.git ~/openairinterface5g
cd openairinterface5g

增加代理信息(增加代理信息之后,可以保证编译的成功)

# in orin, we use this to install gcc-12, g++12 and adjust BUILD_OPTION to support FlexRIC
ARG EXTRA_DEB_PKGS="tensorrt-dev"

ENV http_proxy=http://192.168.0.105:7892
ENV https_proxy=http://192.168.0.105:7892

#install developers pkg/repo
RUN export http_proxy=http://192.168.0.105:7892 && \
    export https_proxy=http://192.168.0.105:7892 && \
    apt-get update && \
    apt-get upgrade --yes && \
    apt-get install --yes \

编译

cd ~/openairinterface5g/
docker build . -f docker/Dockerfile.base.ubuntu --tag ran-base:latest
docker build . -f docker/Dockerfile.gNB.aerial.ubuntu --tag oai-gnb-aerial:latest