23 lines
819 B
Docker
23 lines
819 B
Docker
FROM openeuler/openeuler:24.03
|
|
|
|
RUN dnf update -y && \
|
|
dnf clean all && \
|
|
dnf install -y supervisor &&\
|
|
rm -rf /var/cache/dnf/*
|
|
|
|
RUN curl -fsSL https://github.com/prometheus/prometheus/releases/download/v2.54.0/prometheus-2.54.0.linux-amd64.tar.gz | tar -xz -C /usr/local/bin && \
|
|
mv /usr/local/bin/prometheus-*/prometheus /usr/local/bin/prometheus && \
|
|
rm /usr/local/bin/prometheus-* -rf && \
|
|
chmod +x /usr/local/bin/prometheus
|
|
|
|
RUN curl -fsSL https://github.com/abtreece/confd/releases/download/v0.20.0/confd-v0.20.0-linux-amd64.tar.gz | tar -xz -C /usr/local/bin && \
|
|
chmod +x /usr/local/bin/confd
|
|
|
|
RUN mkdir /etc/prometheus/
|
|
|
|
COPY prometheus.yml /etc/prometheus/prometheus.yml
|
|
|
|
COPY COPY ./supervisord/ /etc/supervisord/
|
|
|
|
CMD [ "supervisord", "-c", "/etc/supervisord/supervisord.conf" ]
|