Skip to content
Snippets Groups Projects
Commit 1a20bc52 authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

chore(ci): aligning with version in RAN

 * For all supported OS (Ubuntu, RHEL and RockyLinux)
 * Arguments can be passed to change versions

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent 04c2bd67
No related branches found
No related tags found
1 merge request!53chore(ci): aligning with version in RAN
Pipeline #49010 passed
...@@ -82,6 +82,9 @@ RUN git clone https://github.com/swig/swig.git && \ ...@@ -82,6 +82,9 @@ RUN git clone https://github.com/swig/swig.git && \
ldconfig ldconfig
FROM oai-flexric-base as oai-flexric-builder FROM oai-flexric-base as oai-flexric-builder
ARG E2AP_VERSION=E2AP_V3
ARG KPM_VERSION=KPM_V3_00
WORKDIR /flexric WORKDIR /flexric
COPY . . COPY . .
...@@ -90,6 +93,8 @@ RUN mkdir build && \ ...@@ -90,6 +93,8 @@ RUN mkdir build && \
cd build && \ cd build && \
scl enable gcc-toolset-12 "\ scl enable gcc-toolset-12 "\
cmake -GNinja -DCMAKE_BUILD_TYPE=Release \ cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
-DE2AP_VERSION=$E2AP_VERSION \
-DKPM_VERSION=$KPM_VERSION \
-DCMAKE_C_FLAGS_RELEASE='-O3' \ -DCMAKE_C_FLAGS_RELEASE='-O3' \
-DCMAKE_CXX_FLAGS_RELEASE='-O3' .. && \ -DCMAKE_CXX_FLAGS_RELEASE='-O3' .. && \
ninja && \ ninja && \
...@@ -108,6 +113,7 @@ ENV TZ=Europe/Paris ...@@ -108,6 +113,7 @@ ENV TZ=Europe/Paris
# Copy the entitlements # Copy the entitlements
COPY ./etc-pki-entitlement /etc/pki/entitlement COPY ./etc-pki-entitlement /etc/pki/entitlement
# Copy the subscription manager configurations # Copy the subscription manager configurations
COPY ./rhsm-conf /etc/rhsm COPY ./rhsm-conf /etc/rhsm
COPY ./rhsm-ca /etc/rhsm/ca COPY ./rhsm-ca /etc/rhsm/ca
......
...@@ -72,6 +72,9 @@ RUN git clone https://github.com/swig/swig.git && \ ...@@ -72,6 +72,9 @@ RUN git clone https://github.com/swig/swig.git && \
ldconfig ldconfig
FROM oai-flexric-base as oai-flexric-builder FROM oai-flexric-base as oai-flexric-builder
ARG E2AP_VERSION=E2AP_V3
ARG KPM_VERSION=KPM_V3_00
WORKDIR /flexric WORKDIR /flexric
COPY . . COPY . .
...@@ -80,6 +83,8 @@ RUN mkdir build && \ ...@@ -80,6 +83,8 @@ RUN mkdir build && \
cd build && \ cd build && \
scl enable gcc-toolset-12 "\ scl enable gcc-toolset-12 "\
cmake -GNinja -DCMAKE_BUILD_TYPE=Release \ cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
-DE2AP_VERSION=$E2AP_VERSION \
-DKPM_VERSION=$KPM_VERSION \
-DCMAKE_C_FLAGS_RELEASE='-O3' \ -DCMAKE_C_FLAGS_RELEASE='-O3' \
-DCMAKE_CXX_FLAGS_RELEASE='-O3' .. && \ -DCMAKE_CXX_FLAGS_RELEASE='-O3' .. && \
ninja && \ ninja && \
......
...@@ -70,6 +70,9 @@ RUN git clone https://github.com/swig/swig.git && \ ...@@ -70,6 +70,9 @@ RUN git clone https://github.com/swig/swig.git && \
ldconfig ldconfig
FROM oai-flexric-base as oai-flexric-builder FROM oai-flexric-base as oai-flexric-builder
ARG E2AP_VERSION=E2AP_V3
ARG KPM_VERSION=KPM_V3_00
WORKDIR /flexric WORKDIR /flexric
COPY . . COPY . .
...@@ -77,6 +80,8 @@ COPY . . ...@@ -77,6 +80,8 @@ COPY . .
RUN mkdir build && \ RUN mkdir build && \
cd build && \ cd build && \
cmake -GNinja -DCMAKE_BUILD_TYPE=Release \ cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
-DE2AP_VERSION=$E2AP_VERSION \
-DKPM_VERSION=$KPM_VERSION \
-DCMAKE_C_FLAGS_RELEASE="-O3" \ -DCMAKE_C_FLAGS_RELEASE="-O3" \
-DCMAKE_CXX_FLAGS_RELEASE="-O3" \ -DCMAKE_CXX_FLAGS_RELEASE="-O3" \
-DCMAKE_C_COMPILER=gcc-12 \ -DCMAKE_C_COMPILER=gcc-12 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment