Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Mar 16, 2017
1 parent 56f7950 commit 309005e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM quay.io/prometheus/busybox:latest
FROM alpine:latest
MAINTAINER Sophos <[email protected]>

WORKDIR /bin
COPY bin/nginx-vts-exporter.tar.gz /bin/
COPY docker-entrypoint.sh /bin/docker-entrypoint.sh
RUN tar xf /bin/nginx-vts-exporter.tar.gz -C /bin/ && chmod +x /bin/nginx-vts-exporter

ENV NGIX_HOST "http://localhost"
ENV NGINX_HOST "http://localhost"
ENV METRICS_ENDPOINT "/metrics"
ENV METRICS_ADDR ":9913"
ENV DEFAULT_METRICS_NS "nginx"

ENTRYPOINT ["/bin/docker-entrypoint.sh"]
ENTRYPOINT ["nginx-vts-exporter"]
CMD -nginx.scrape_uri=$NGINX_STATUS/status/format/json -telemetry.address $METRICS_ADDR -telemetry.endpoint $METRICS_ENDPOINT -metrics.namespace $METRICS_NS

0 comments on commit 309005e

Please sign in to comment.