X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=c61aded4d3f1e4c5b29d31a51693dc413d71c7b1;hb=HEAD;hp=f91f7ed62f0e6b45b315a566dd03d7f8d9754280;hpb=d2c00f3d80bee5bad69fe21f59aa68a7c16704e4;p=ric-plt%2Fvespamgr.git diff --git a/Dockerfile b/Dockerfile index f91f7ed..c61aded 100755 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ # platform project (RICP). # -FROM golang:1.12 as gobuild +FROM golang:1.16 as gobuild # Install utilities RUN apt update && apt install -y iputils-ping net-tools curl sudo @@ -31,6 +31,9 @@ WORKDIR $GOPATH/src/VESPA RUN git clone -b v0.3.0 https://github.com/nokia/ONAP-VESPA.git $GOPATH/src/VESPA RUN GO111MODULE=on go mod download +ENV GOLANG_VERSION 1.16 +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 # Install VES Agent RUN export GOPATH=$HOME/go && \ @@ -46,7 +49,7 @@ WORKDIR /go/src/vespamgr RUN ./build_vesmgr.sh # Final, executable and deployable container -FROM ubuntu:18.04 +FROM ubuntu:20.04 RUN mkdir -p /etc/ves-agent @@ -55,7 +58,7 @@ COPY --from=gobuild /root/go/bin /root/go/bin COPY --from=gobuild /root/go/bin/vespamgr /usr/local/bin/vesmgr COPY --from=gobuild /root/go/bin/vespamgr /vespamgr COPY --from=gobuild /go/src/vespamgr/config/* /cfg/ - +COPY --from=gobuild /go/src/vespamgr/config/plt-counter.json /cfg/plt-counter.json RUN ldconfig ENV CFG_FILE=/cfg/config-file.json