mirror of
https://github.com/digitalocean/ceph_exporter
synced 2025-02-17 11:56:49 +00:00
Initial dockerfile
This commit is contained in:
parent
9cda67d44a
commit
3d4e949f49
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
FROM ubuntu:14.04
|
||||||
|
MAINTAINER Vaibhav Bhembre <vaibhav@digitalocean.com>
|
||||||
|
|
||||||
|
ENV GOPATH /go
|
||||||
|
ENV APPLOC $GOPATH/src/github.com/digitalocean/ceph_exporter
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install build-essential
|
||||||
|
apt-get install -y librados-dev librbd-dev
|
||||||
|
|
||||||
|
WORKDIR $APPLOC
|
||||||
|
RUN go get -d && \
|
||||||
|
go build -o /bin/ceph_exporter && \
|
||||||
|
rm -rf $GOPATH
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/ceph_exporter"
|
Loading…
Reference in New Issue
Block a user