Commit d9b8ea5e authored by Raphael Defosseux's avatar Raphael Defosseux

docker: fix when building image from openair-epc-fed repository

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent 2117bcf0
......@@ -170,6 +170,19 @@ function main()
fi
fi
# Taking care of the case we build from dockerfile within openair-epc-fed repository
if [ -f $OPENAIRCN_DIR/.git ] && [ $IS_CONTAINER -ne 0 ]; then
pushd $OPENAIRCN_DIR > /dev/null
rm -f .git
git init
git config --global user.email "dummy@dummy.org"
git config --global user.name "dummy"
echo "dummy" > dummy.txt
git add dummy.txt
git commit -m "dummy"
popd > /dev/null
fi
cmake_args="$cmake_args -DBUILD_SHARED_LIBS=OFF"
##############################################################################
# Clean
......
......@@ -53,10 +53,6 @@ WORKDIR /openair-spgwu-tiny/build/scripts
RUN ./build_spgwu --install-deps --force
RUN ./build_spgwu --clean --build-type Release --jobs --Verbose
# Getting SHA-ONE for support
WORKDIR /openair-spgwu-tiny
RUN git log -n1 > version.txt
#---------------------------------------------------------------------
# TARGET IMAGE
#---------------------------------------------------------------------
......@@ -89,7 +85,6 @@ WORKDIR /openair-spgwu-tiny/etc
COPY --from=oai-spgwu-tiny-builder /openair-spgwu-tiny/etc/spgw_u.conf .
WORKDIR /openair-spgwu-tiny
COPY --from=oai-spgwu-tiny-builder /openair-spgwu-tiny/version.txt .
# expose ports
EXPOSE 2152/udp 8805/udp
......
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