Add troubleshooting tools
[ric-plt/vespamgr.git] / Dockerfile
index cf33106..de491db 100644 (file)
@@ -40,6 +40,11 @@ COPY $HOME/ .
 
 RUN GO111MODULE=on go mod download
 
+# Run vesmgr UT
+RUN export GOPATH=$HOME/go && \
+    export PATH=$GOPATH/bin:$GOROOT/bin:$PATH && \
+    go test ./...
+
 # Install vesmgr
 RUN export GOPATH=$HOME/go && \
     export PATH=$GOPATH/bin:$GOROOT/bin:$PATH && \
@@ -51,6 +56,12 @@ 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
+
 # Create the configuration directory for ves agent
 RUN mkdir -p /etc/ves-agent
 COPY --from=gobuild root/go/bin /root/go/bin