forked from prometheus/haproxy_exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
FROM quay.io/prometheus/busybox:latest | ||
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com> | ||
FROM golang:1.8 | ||
MAINTAINER Yaroslav Molochko <y.molochko@anchorfree.com> | ||
|
||
COPY haproxy_exporter /bin/haproxy_exporter | ||
COPY . /go/src/github.com/anchorfree/haproxy-exporter | ||
RUN go get github.com/prometheus/log \ | ||
&& go get github.com/prometheus/client_golang/prometheus \ | ||
&& CGO_ENABLED=0 go build -a -tags netgo -o /build/haproxy_exporter github.com/anchorfree/haproxy-exporter | ||
|
||
ENTRYPOINT ["/bin/haproxy_exporter"] | ||
FROM alpine | ||
MAINTAINER Yaroslav Molochko <[email protected]> | ||
|
||
COPY --from=0 /build/haproxy_exporter / | ||
EXPOSE 9101 | ||
|
||
ENTRYPOINT ["/haproxy_exporter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!groovy | ||
|
||
pipeline { | ||
agent { label 'ubuntu16' | ||
} | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
dockerBuildTagPush() | ||
} | ||
} | ||
} | ||
} |