FROM centos:7.6.1810
ARG PROM_VERSION=2.12.0
ARG PROM_URL=https://github.com/prometheus/prometheus/releases/download/v$PROM_VERSION/prometheus-$PROM_VERSION.linux-amd64.tar.gz
RUN curl -sOL $PROM_URL \
&& tar -xf prometheus*.tar.gz \
&& mv prometheus*.linux-amd64 /usr/local/prometheus \
&& mkdir /etc/prometheus /data \
&& mv /usr/local/prometheus/prometheus.yml /etc/prometheus \
&& rm -f /usr/local/prometheus/promtool \
&& unlink /etc/localtime \
&& ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& rm -f prometheus*.tar.gz
ENV PATH=$PATH:/usr/local/prometheus
EXPOSE 9090/TCP
ENTRYPOINT ["/usr/local/prometheus/prometheus"]
CMD ["--config.file=/etc/prometheus/prometheus.yml", "--storage.tsdb.path=/data", "--web.enable-lifecycle"]
Content type
Image
Digest
Size
103 MB
Last updated
about 7 years ago
docker pull cesresearch/prometheus