summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>2018-11-02 10:09:11 +0000
committerAaron Smith <aasmith@redhat.com>2018-11-12 13:44:01 +0000
commit9e4427e2f59557c30210f51f2e814667bb347ad7 (patch)
tree323348e8037ed48b219666b23a48e1b0e0d353ce /docker
parentc7decbe541bf440a79200e7d463533697b6c1f0f (diff)
src, docker: Change pkg import path of DMA
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> (cherry picked from commit 354e06c7edcb9434d55c06bfab4de157f0e2d012)
Diffstat (limited to 'docker')
-rw-r--r--docker/barometer-dma/Dockerfile10
1 files changed, 4 insertions, 6 deletions
diff --git a/docker/barometer-dma/Dockerfile b/docker/barometer-dma/Dockerfile
index afe7c3f3..afd68c39 100644
--- a/docker/barometer-dma/Dockerfile
+++ b/docker/barometer-dma/Dockerfile
@@ -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