3 # install prerequisites
5 yum install -y which sudo git libvirt-devel && \
6 rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO && \
7 curl -s https://mirror.go-repo.io/centos/go-repo.repo | tee /etc/yum.repos.d/go-repo.repo && \
10 # set environment variables
11 # need to change when we move to barometer
13 ENV repos_dir /root/go/src/github.com/distributed-monitoring/agent
18 RUN git clone https://gerrit.opnfv.org/gerrit/barometer && \
19 mv barometer/src/dma/* ./
20 RUN go build ./cmd/server && \
21 go build ./cmd/threshold && \
22 go build ./cmd/infofetch
24 RUN cp server threshold infofetch /