RIC-1074: Update base OS to ubuntu22.04 and golang to 1.22 38/15238/1
authorAbdulwahid <abdulwahid.w@nokia.com>
Tue, 11 Nov 2025 12:06:09 +0000 (12:06 +0000)
committerAbdulwahid <abdulwahid.w@nokia.com>
Tue, 11 Nov 2025 12:06:09 +0000 (12:06 +0000)
Change-Id: I8c4e4a8e8432da4f5c357b99307186b1b05b335e
Signed-off-by: Abdulwahid <abdulwahid.w@nokia.com>
build/Dockerfile
build/build_ubuntu.sh
go.mod

index 466f3cc..f4f6e46 100755 (executable)
@@ -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 /
index a18f351..5b2cb82 100755 (executable)
@@ -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 (file)
--- 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/