Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijiansd authored May 1, 2020
1 parent 1fefb38 commit 804f259
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions snmp_exporter/generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM golang:latest

RUN apt-get update && \
apt-get install -y libsnmp-dev p7zip-full && \
go get github.com/prometheus/snmp_exporter/generator && \
cd /go/src/github.com/prometheus/snmp_exporter/generator && \
go get -v . && \
go install

WORKDIR "/opt"

ENTRYPOINT ["/go/bin/generator"]

ENV MIBDIRS mibs

CMD ["generate"]

0 comments on commit 804f259

Please sign in to comment.