Update golang version 03/9603/3
authorsubhash kumar singh <subh.singh@samsung.com>
Mon, 14 Nov 2022 06:35:32 +0000 (06:35 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Mon, 14 Nov 2022 08:34:33 +0000 (08:34 +0000)
Update golang version for updated image.

Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: I0044b7ebf3286915779fe4072612372d93683df0

Dockerfile

index 0d5642f..3321629 100644 (file)
@@ -14,7 +14,7 @@
 
 #-----------------------------------------------------------
 
 
 #-----------------------------------------------------------
 
-FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 AS dms-build
+FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu20-c-go:1.1.0 AS dms-build
 
 RUN apt-get update -y && apt-get install -y jq
 
 
 RUN apt-get update -y && apt-get install -y jq
 
@@ -42,7 +42,7 @@ WORKDIR "/go/src/ws"
 # Module prepare (if go.mod/go.sum updated)
 COPY go.mod /go/src/ws
 COPY go.sum /go/src/ws
 # Module prepare (if go.mod/go.sum updated)
 COPY go.mod /go/src/ws
 COPY go.sum /go/src/ws
-RUN GO111MODULE=on go mod download
+RUN go mod download
 
 # build and test
 COPY . /go/src/ws
 
 # build and test
 COPY . /go/src/ws
@@ -51,7 +51,7 @@ COPY . /go/src/ws
 RUN /go/bin/swagger generate server -f api/ric-dms-api-2.0.yaml -t pkg/ --exclude-main
 
 # Build the code
 RUN /go/bin/swagger generate server -f api/ric-dms-api-2.0.yaml -t pkg/ --exclude-main
 
 # Build the code
-RUN GO111MODULE=on GO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/src/ws/cache/go/cmd/ric-dms cmd/ric-dms.go
+RUN go build -a -installsuffix cgo -o /go/src/ws/cache/go/cmd/ric-dms cmd/ric-dms.go
 
 # Run unit tests
 #RUN GO111MODULE=on GO_ENABLED=0 GOOS=linux go test -p 1 -cover ./pkg/resthooks/
 
 # Run unit tests
 #RUN GO111MODULE=on GO_ENABLED=0 GOOS=linux go test -p 1 -cover ./pkg/resthooks/
@@ -62,7 +62,7 @@ CMD ["/bin/bash"]
 
 
 #----------------------------------------------------------
 
 
 #----------------------------------------------------------
-FROM ubuntu:18.04 as ric-dms
+FROM ubuntu:20.04 as ric-dms
 
 RUN apt-get update -y \
     && apt-get install --reinstall -y sudo openssl ca-certificates ca-cacert \
 
 RUN apt-get update -y \
     && apt-get install --reinstall -y sudo openssl ca-certificates ca-cacert \