Commit 45403438 authored by Stefan Spettel's avatar Stefan Spettel

feat(smf): Use incremental docker builds

Signed-off-by: default avatarStefan Spettel <stefan.spettel@phine.tech>
parent f7f6cfa3
...@@ -64,12 +64,16 @@ RUN git config --global https.postBuffer 123289600 && \ ...@@ -64,12 +64,16 @@ RUN git config --global https.postBuffer 123289600 && \
# Copying source code # Copying source code
WORKDIR /openair-smf WORKDIR /openair-smf
COPY . /openair-smf COPY ./build/scripts /openair-smf/build/scripts
COPY ./build/smf/CMakeLists.txt /openair-smf/build/smf/CMakeLists.txt
COPY ./build/cmake_modules /openair-smf/cmake_modules
# Installing all the needed libraries/packages to build and run SMF # Installing all the needed libraries/packages to build and run SMF
WORKDIR /openair-smf/build/scripts WORKDIR /openair-smf/build/scripts
RUN ./build_smf --install-deps --force RUN ./build_smf --install-deps --force
COPY . /openair-smf
# Building SMF # Building SMF
WORKDIR /openair-smf/build/scripts WORKDIR /openair-smf/build/scripts
RUN ldconfig && \ RUN ldconfig && \
......
...@@ -49,13 +49,17 @@ RUN git config --global https.postBuffer 123289600 && \ ...@@ -49,13 +49,17 @@ RUN git config --global https.postBuffer 123289600 && \
# Copying source code # Copying source code
WORKDIR /openair-smf WORKDIR /openair-smf
COPY . /openair-smf COPY ./build/scripts /openair-smf/build/scripts
COPY ./build/smf/CMakeLists.txt /openair-smf/build/smf/CMakeLists.txt
COPY ./build/cmake_modules /openair-smf/cmake_modules
# Installing all the needed libraries/packages to build and run SMF # Installing all the needed libraries/packages to build and run SMF
WORKDIR /openair-smf/build/scripts WORKDIR /openair-smf/build/scripts
RUN ./build_smf --install-deps --force && \ RUN ./build_smf --install-deps --force && \
cp -Rf /openair-smf/build/ext /openair-smf-ext-ref cp -Rf /openair-smf/build/ext /openair-smf-ext-ref
COPY . /openair-smf
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# BUILDER IMAGE # BUILDER IMAGE
#--------------------------------------------------------------------- #---------------------------------------------------------------------
......
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