Sign inSign up

himanshutak8/prometheus

By himanshutak8

•Updated over 6 years ago

Image
0

154

himanshutak8/prometheus repository overview

⁠DockerFile for create Image of Docker for Prometheus Sever

⁠Create one folder say test1 and keep all the file of prometheus which we get from extracting the rar file which we download for installing prometheus from official site

ARG ARCH="amd64"
ARG OS="linux"
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
LABEL maintainer="The Prometheus Server"
ARG ARCH="amd64"
ARG OS="linux"
COPY test1/prometheus /bin/prometheus
COPY test1/promtool /bin/promtool
COPY test1/prometheus.yml /etc/prometheus/prometheus.yml
COPY test1/console_libraries/ /usr/share/prometheus/console_libraries/
COPY test1/consoles/ /usr/share/prometheus/consoles/
COPY test1/LICENSE /LICENSE
COPY test1/NOTICE /NOTICE
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/
RUN mkdir -p /prometheus && chown -R root:root etc/prometheus /prometheus
USER root
EXPOSE 9090
VOLUME [ "/prometheus" ]
WORKDIR /prometheus
ENTRYPOINT [ "/bin/prometheus" ]
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \
"--storage.tsdb.path=/prometheus", \
"--web.console.libraries=/usr/share/prometheus/console_libraries", \
"--web.console.templates=/usr/share/prometheus/consoles" ]

Tag summary

Content type

Image

Digest

Size

54.8 MB

Last updated

over 6 years ago

docker pull himanshutak8/prometheus