Merge "src, docker: Change pkg import path of DMA"
authorAaron Smith <aasmith@redhat.com>
Fri, 9 Nov 2018 13:10:45 +0000 (13:10 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Fri, 9 Nov 2018 13:10:45 +0000 (13:10 +0000)
docker/barometer-dma/Dockerfile
src/dma/cmd/infofetch/daemon.go
src/dma/cmd/threshold/transmit.go

index afe7c3f..afd68c3 100644 (file)
@@ -8,15 +8,13 @@ RUN yum update -y &&\
     yum install -y golang
 
 # set environment variables
-# need to change when we move to barometer
 ENV DOCKER y
-ENV repos_dir /root/go/src/github.com/distributed-monitoring/agent
+ENV repos_dir /root/go/src/github.com/opnfv
 
-# copy repo code and 
-# COPY . ${repos_dir}
+# get repo code and build
 WORKDIR ${repos_dir}
-RUN git clone https://gerrit.opnfv.org/gerrit/barometer && \
-    mv barometer/src/dma/* ./
+RUN git clone https://gerrit.opnfv.org/gerrit/barometer
+WORKDIR ${repos_dir}/barometer/src/dma
 RUN go build ./cmd/server && \
     go build ./cmd/threshold && \
     go build ./cmd/infofetch
index d4ff94f..3bb51bc 100644 (file)
@@ -19,9 +19,9 @@ package main
 import (
        "context"
        "github.com/BurntSushi/toml"
-       "github.com/distributed-monitoring/agent/pkg/common"
        "github.com/go-redis/redis"
        libvirt "github.com/libvirt/libvirt-go"
+       "github.com/opnfv/barometer/src/dma/pkg/common"
        "log"
        "sync"
 )
index 8cac2a8..8c60cc1 100644 (file)
@@ -19,8 +19,8 @@ package main
 import (
        "bytes"
        "fmt"
-       "github.com/distributed-monitoring/agent/pkg/common"
        "github.com/go-redis/redis"
+       "github.com/opnfv/barometer/src/dma/pkg/common"
        "strconv"
        "strings"
        "time"