X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=a481f6d3c8de3618b4f8a6289493b9468733a6bc;hb=3d0978374939ba984244de56750f1e7933b55073;hp=cf3310681cbb63bb47fd98025641ca6d8fbee4b3;hpb=4b74f01111b3b14fbb3832d8aaf4946cded374a0;p=ric-plt%2Fvespamgr.git diff --git a/Dockerfile b/Dockerfile index cf33106..a481f6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,12 +38,7 @@ WORKDIR $GOPATH/src/vesmgr # Copy vesmgr to the Working Directory COPY $HOME/ . -RUN GO111MODULE=on go mod download - -# Install vesmgr -RUN export GOPATH=$HOME/go && \ - export PATH=$GOPATH/bin:$GOROOT/bin:$PATH && \ - go install -v ./cmd/vesmgr +RUN ./build_vesmgr.sh ################# # @@ -51,6 +46,13 @@ RUN export GOPATH=$HOME/go && \ # Ubuntu or something smaller? FROM ubuntu:18.04 +# For trouble-shooting +RUN apt-get update; apt-get install -y \ + iputils-ping \ + net-tools \ + curl \ + tcpdump + # Create the configuration directory for ves agent RUN mkdir -p /etc/ves-agent COPY --from=gobuild root/go/bin /root/go/bin