finally fixed the compose file. Changed the Dockerfile to pull the Prometheus image then inject the yml config changes

This commit is contained in:
root
2015-08-18 23:28:12 +02:00
parent dc8f124b58
commit eaca8b49d0
664 changed files with 10 additions and 150546 deletions

View File

@ -1,23 +1,14 @@
FROM sdurrheimer/alpine-glibc
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
FROM prom/prometheus:latest
WORKDIR /app
COPY . /app
ADD prometheus.yml /etc/prometheus/prometheus.yml
RUN apk add --update -t build-deps git mercurial bzr make \
&& make build \
&& cp prometheus promtool /bin/ \
&& mkdir -p /etc/prometheus \
#&& mv ./documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml \
&& mv ./console_libraries/ ./consoles/ /etc/prometheus/ \
&& apk del --purge build-deps \
&& rm -rf /app /var/cache/apk/*
RUN mkdir -p /etc/prometheus/targets.d
EXPOSE 9090
EXPOSE 9090
VOLUME [ "/prometheus" ]
WORKDIR /prometheus
ENTRYPOINT [ "/bin/prometheus" ]
CMD [ "-config.file=/etc/prometheus/prometheus.yml", \
"-storage.local.path=/prometheus", \
"-web.console.libraries=/etc/prometheus/console_libraries", \
"-web.console.templates=/etc/prometheus/consoles" ]
"-web.console.templates=/etc/prometheus/consoles", \
"-web.listen-address=:9090" ]