ci: Pull ubuntu:noble image from our internal docker registry to build ubuntu images

- This is to overcome the issue of pull rate limits from DockerHub
        - Make Ubuntu base image configurable via build-arg
This commit is contained in:
Shubhika Garg
2026-02-05 15:30:34 +01:00
parent 520360a629
commit 0a9c3a07eb
14 changed files with 41 additions and 18 deletions

View File

@@ -26,7 +26,9 @@
#---------------------------------------------------------------------
FROM ubuntu:noble AS ran-base
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ${UBUNTU_IMAGE} AS ran-base
ARG NEEDED_GIT_PROXY
ARG TARGETARCH
ENV DEBIAN_FRONTEND=noninteractive

View File

@@ -26,7 +26,8 @@
#---------------------------------------------------------------------
# Very important, the noble image shall not be using mirrors. A lot of them do NOT support ARM64.
FROM ubuntu:noble AS ran-base
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ${UBUNTU_IMAGE} AS ran-base
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris
# Specifying a working version of SIMDE for ARM:

View File

@@ -24,6 +24,7 @@
# Valid for Ubuntu 24.04
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS enb-base
@@ -31,7 +32,8 @@ FROM ran-build:latest AS enb-build
#start from scratch for target executable
FROM ubuntu:noble AS oai-enb
FROM ${UBUNTU_IMAGE} AS oai-enb
ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris

View File

@@ -25,6 +25,7 @@
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS ran-build
RUN apt-get update && \
@@ -59,7 +60,7 @@ RUN /bin/sh oaienv && \
#start from scratch for target executable
FROM ubuntu:noble AS oai-gnb-aerial
FROM ${UBUNTU_IMAGE} AS oai-gnb-aerial
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe

View File

@@ -25,6 +25,8 @@
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS ran-build
RUN apt-get update && \
@@ -58,7 +60,7 @@ RUN /bin/sh oaienv && \
#start from scratch for target executable
FROM ubuntu:noble AS oai-gnb-aerial
FROM ${UBUNTU_IMAGE} AS oai-gnb-aerial
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe

View File

@@ -25,6 +25,7 @@
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS gnb-base
FROM ran-build:latest AS gnb-build
@@ -38,7 +39,7 @@ RUN /bin/sh oaienv && \
./build_oai -w AW2SORI -t Ethernet
#start from scratch for target executable
FROM ubuntu:noble AS oai-gnb-aw2s
FROM ${UBUNTU_IMAGE} AS oai-gnb-aw2s
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe

View File

@@ -24,6 +24,7 @@
# Valid for Ubuntu24.04
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS gnb-base
@@ -31,7 +32,7 @@ FROM ran-build-fhi72:latest AS gnb-build
#start from scratch for target executable
FROM ubuntu:noble AS oai-gnb
FROM ${UBUNTU_IMAGE} AS oai-gnb
ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe

View File

@@ -25,13 +25,14 @@
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS gnb-base
FROM ran-build:latest AS gnb-build
#start from scratch for target executable
FROM ubuntu:noble AS oai-gnb
FROM ${UBUNTU_IMAGE} AS oai-gnb
ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris

View File

@@ -25,13 +25,14 @@
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS ru-base
FROM ran-build:latest AS ru-build
#start from scratch for target executable
FROM ubuntu:noble AS oai-lte-ru
FROM ${UBUNTU_IMAGE} AS oai-lte-ru
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris

View File

@@ -25,13 +25,15 @@
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS lte-ue-base
FROM ran-build:latest AS lte-ue-build
FROM ran-build:latest AS lte-ue-build
#start from scratch for target executable
FROM ubuntu:noble AS oai-lte-ue
FROM ${UBUNTU_IMAGE} AS oai-lte-ue
ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris

View File

@@ -25,12 +25,13 @@
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS gnb-base
FROM ran-build:latest AS gnb-build
FROM ubuntu:noble AS oai-nr-cuup
FROM ${UBUNTU_IMAGE} AS oai-nr-cuup
ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe
@@ -46,7 +47,7 @@ RUN apt-get update && \
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 \
libasan8 \
libasan8 \
libubsan1; fi' && \
rm -rf /var/lib/apt/lists/*

View File

@@ -18,13 +18,14 @@
# * For more information about the OpenAirInterface (OAI) Software Alliance:
# * contact@openairinterface.org
# */
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS ran-base
FROM ran-build-fhi72:latest AS ran-build
#start from scratch for target executable
FROM ubuntu:noble AS oai-nr-oru
FROM ${UBUNTU_IMAGE} AS oai-nr-oru
ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe

View File

@@ -25,13 +25,14 @@
#
#---------------------------------------------------------------------
ARG UBUNTU_IMAGE=ubuntu:noble
FROM ran-base:latest AS nr-ue-base
FROM ran-build:latest AS nr-ue-build
#start from scratch for target executable
FROM ubuntu:noble AS oai-nr-ue
FROM ${UBUNTU_IMAGE} AS oai-nr-ue
ARG BUILD_OPTION
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris