From b90603f96a0f1f0e0934e33bffa7f207475cba48 Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Sat, 16 Aug 2025 01:43:44 +0000 Subject: [PATCH] 24.03-lts-sp1 update prometheus to 3.5.0 --- .../prometheus/3.5.0/24.03-lts-sp1/Dockerfile | 32 +++++++++++++++++++ Cloud/prometheus/meta.yml | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 Cloud/prometheus/3.5.0/24.03-lts-sp1/Dockerfile diff --git a/Cloud/prometheus/3.5.0/24.03-lts-sp1/Dockerfile b/Cloud/prometheus/3.5.0/24.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..042c064f --- /dev/null +++ b/Cloud/prometheus/3.5.0/24.03-lts-sp1/Dockerfile @@ -0,0 +1,32 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.5.0 + +RUN yum -y update && yum -y install shadow-utils && yum clean all && \ + curl -fSL --output prometheus.tar.gz https://github.com/prometheus/prometheus/releases/download/v${VERSION}/prometheus-${VERSION}.linux-${TARGETARCH}.tar.gz && \ + mkdir /prometheus && tar -zxvf prometheus.tar.gz -C /prometheus --strip-components 1 && \ + rm -f prometheus.tar.gz + +RUN mkdir -p /etc/prometheus/ /usr/share/prometheus/ && \ + mv /prometheus/prometheus /bin/prometheus && \ + mv /prometheus/promtool /bin/promtool && \ + mv /prometheus/prometheus.yml /etc/prometheus/prometheus.yml && \ + mv /prometheus/LICENSE /LICENSE && \ + mv /prometheus/NOTICE /NOTICE && \ + rm -rf /prometheus/ + +WORKDIR /prometheus +RUN groupadd -r prometheus && useradd -r -g prometheus prometheus && \ + ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ && \ + chown -R prometheus:prometheus /etc/prometheus /prometheus + +USER prometheus +EXPOSE 9090 +VOLUME [ "/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" ] diff --git a/Cloud/prometheus/meta.yml b/Cloud/prometheus/meta.yml index ad82884a..a485c57b 100644 --- a/Cloud/prometheus/meta.yml +++ b/Cloud/prometheus/meta.yml @@ -41,4 +41,6 @@ 3.2.1-oe2403lts: path: Cloud/prometheus/3.2.1/24.03-lts/Dockerfile 3.3.1-oe2403sp1: - path: Cloud/prometheus/3.3.1/24.03-lts-sp1/Dockerfile \ No newline at end of file + path: Cloud/prometheus/3.3.1/24.03-lts-sp1/Dockerfile +3.5.0-oe2403sp1: + path: 3.5.0/24.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee