Skip to content

Commit

Permalink
Merge pull request #4 from sdurrheimer/master
Browse files Browse the repository at this point in the history
New Dockerfile using alpine-golang-make-onbuild base image
  • Loading branch information
discordianfish committed Jul 13, 2015
2 parents a679915 + 4d34076 commit b9a79a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
14 changes: 2 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
FROM alpine:3.2
MAINTAINER The Prometheus Authors <[email protected]>

ENV GOPATH /go
COPY . /go/src/github.com/prometheus/nginx_exporter

RUN apk add --update -t build-deps go git mercurial make \
&& apk add -u musl && rm -rf /var/cache/apk/* \
&& cd /go/src/github.com/prometheus/nginx_exporter \
&& make && cp nginx_exporter /bin/nginx_exporter \
&& rm -rf /go && apk del --purge build-deps
FROM sdurrheimer/alpine-golang-make-onbuild
MAINTAINER The Prometheus Authors <[email protected]>

EXPOSE 9113
ENTRYPOINT [ "/bin/nginx_exporter" ]
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,14 @@ Help on flags:
./nginx_exporter --help
```

# Getting Started
## Getting Started
* All of the core developers are accessible via the [Prometheus Developers Mailinglist](https://groups.google.com/forum/?fromgroups#!forum/prometheus-developers).

## Using Docker

```
docker pull fish/nginx-exporter
docker run -d -p 9113:9113 fish/nginx-exporter \
-nginx.scrape_uri=http://172.17.42.1/nginx_status
```

0 comments on commit b9a79a6

Please sign in to comment.