Different repository from OPNFV repository was temporary used
as our own go package paths of DMA.
Since the DMA code was merged in OPNFV Barometer,
we change the import path to the Barometer repository
and we simplify Dockerfile.
Change-Id: I49aba163d3bd93a9edb48ce10bd4f69a43c2e28a
Signed-off-by: Toshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
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
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"
)
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"