prometheus-server-app/Dockerfile

25 lines
859 B
Docker
Raw Normal View History

2020-11-05 12:54:41 +00:00
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
2020-11-04 16:13:26 +00:00
2020-11-05 12:54:41 +00:00
EXPOSE 3000
2020-11-04 16:13:26 +00:00
2020-11-06 18:55:38 +00:00
# configure apache
RUN rm /etc/apache2/sites-enabled/*
RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
RUN a2disconf other-vhosts-access-log
ADD apache/prometheus.conf /etc/apache2/sites-enabled/prometheus.conf
RUN echo "Listen 8000" > /etc/apache2/ports.conf
RUN a2enmod ldap authnz_ldap proxy proxy_http rewrite
# install Prometheus
2020-11-05 12:54:41 +00:00
RUN mkdir -p /usr/local/bin/prometheus && \
cd /usr/local/bin && \
wget -c https://github.com/prometheus/prometheus/releases/download/v2.22.0/prometheus-2.22.0.linux-amd64.tar.gz && \
tar xvfz prometheus-*.tar.gz && \
rm -rf prometheus-*.tar.gz && \
mv prometheus-*/* prometheus && \
rm -rf prometheus-*
2020-11-04 16:13:26 +00:00
2020-11-05 12:54:41 +00:00
COPY start.sh /app/pkg/
2020-11-04 16:13:26 +00:00
2020-11-05 12:54:41 +00:00
CMD [ "/app/pkg/start.sh" ]