From: Abdulwahid Date: Tue, 11 Nov 2025 12:06:09 +0000 (+0000) Subject: RIC-1074: Update base OS to ubuntu22.04 and golang to 1.22 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=2c23597315242d114ed24ab00d13cfec336ac713;p=ric-plt%2Falarm-go.git RIC-1074: Update base OS to ubuntu22.04 and golang to 1.22 Change-Id: I8c4e4a8e8432da4f5c357b99307186b1b05b335e Signed-off-by: Abdulwahid --- diff --git a/build/Dockerfile b/build/Dockerfile index 466f3cc..f4f6e46 100755 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -18,7 +18,7 @@ # platform project (RICP). #================================================================================== -FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu20-c-go:1.0.0 as ubuntu-alarm-manager +FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu22-c-go:1.0.0 as ubuntu-alarm-manager RUN apt update && apt install --reinstall -y ca-certificates && update-ca-certificates @@ -26,7 +26,7 @@ RUN apt update && apt install --reinstall -y ca-certificates && update-ca-certif RUN apt update && apt install -y iputils-ping net-tools curl sudo build-essential # Installing the go version -ENV GOLANG_VERSION 1.20.4 +ENV GOLANG_VERSION 1.22.5 RUN wget --quiet https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz \ && tar xvzf go$GOLANG_VERSION.linux-amd64.tar.gz -C /usr/local ENV PATH="/usr/local/go/bin:${PATH}" @@ -41,7 +41,7 @@ WORKDIR "/go/src/am" RUN ./build/build_ubuntu.sh # Final, executable and deployable container -FROM ubuntu:20.04 +FROM ubuntu:22.04 COPY --from=ubuntu-alarm-manager /go/src/am/build/run.sh / COPY --from=ubuntu-alarm-manager /go/src/am/manager/alarm-manager / diff --git a/build/build_ubuntu.sh b/build/build_ubuntu.sh index a18f351..5b2cb82 100755 --- a/build/build_ubuntu.sh +++ b/build/build_ubuntu.sh @@ -35,7 +35,7 @@ rm $rmrdev export LD_LIBRARY_PATH=/usr/local/lib # Installing the go version -GOLANG_VERSION=1.20.4 +GOLANG_VERSION=1.22.5 wget --quiet https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz \ && tar xvzf go$GOLANG_VERSION.linux-amd64.tar.gz -C /usr/local PATH="/usr/local/go/bin:${PATH}" diff --git a/go.mod b/go.mod index c8b7fc4..35d32c9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gerrit.o-ran-sc.org/r/ric-plt/alarm-go.git -go 1.18 +go 1.22 replace gerrit.o-ran-sc.org/r/ric-plt/alarm-go.git/alarm => ./alarm/