# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
+#
+# This source code is part of the near-RT RIC (RAN Intelligent Controller)
+# platform project (RICP).
+#
# Start from golang v1.12 base image
FROM golang:1.12 as gobuild
# Copy vesmgr to the Working Directory
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 && \
- go install -v ./cmd/vesmgr
+RUN ./build_vesmgr.sh
#################
#
RUN apt-get update; apt-get install -y \
iputils-ping \
net-tools \
- curl
+ curl \
+ tcpdump
# Create the configuration directory for ves agent
RUN mkdir -p /etc/ves-agent