From 963b74d7f6ecd6f8ef6614ba1c43bdc43dd1d1b7 Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Mon, 22 Sep 2025 00:04:41 +0000 Subject: [PATCH] 24.03-lts-sp2 update prometheus to 3.6.0 --- .../prometheus/3.6.0/24.03-lts-sp2/Dockerfile | 32 +++++++++++++++++++ Cloud/prometheus/README.md | 1 + Cloud/prometheus/doc/image-info.yml | 1 + Cloud/prometheus/meta.yml | 4 ++- 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Cloud/prometheus/3.6.0/24.03-lts-sp2/Dockerfile diff --git a/Cloud/prometheus/3.6.0/24.03-lts-sp2/Dockerfile b/Cloud/prometheus/3.6.0/24.03-lts-sp2/Dockerfile new file mode 100644 index 00000000..851918fd --- /dev/null +++ b/Cloud/prometheus/3.6.0/24.03-lts-sp2/Dockerfile @@ -0,0 +1,32 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.6.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/README.md b/Cloud/prometheus/README.md index d61bb73d..02803955 100644 --- a/Cloud/prometheus/README.md +++ b/Cloud/prometheus/README.md @@ -17,6 +17,7 @@ Learn more about Prometheus on the [Prometheus Website](https://prometheus.io/do The tag of each `prometheus` docker image is consist of the version of `prometheus` and the version of basic image. The details are as follows | Tag | Currently | Architectures | |----------|-------------|------------------| +|[3.6.0-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/prometheus/3.6.0/24.03-lts-sp2/Dockerfile) | prometheus 3.6.0 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[2.20.0-oe2203lts](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/prometheus/2.20.0/22.03-lts/Dockerfile)| Prometheus server 2.20.0 on openEuler 22.03-LTS | amd64, arm64 | |[2.50.1-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/prometheus/2.50.1/22.03-lts-sp3/Dockerfile)| Prometheus server 2.50.1 on openEuler 22.03-LTS-SP3 | amd64, arm64 | |[2.54.1-oe2003sp4](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/prometheus/2.54.1/20.03-lts-sp4/Dockerfile)| Prometheus server 2.54.1 on openEuler 20.03-LTS-SP4 | amd64, arm64 | diff --git a/Cloud/prometheus/doc/image-info.yml b/Cloud/prometheus/doc/image-info.yml index a924bd9b..ff3f13f4 100644 --- a/Cloud/prometheus/doc/image-info.yml +++ b/Cloud/prometheus/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| + |[3.6.0-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/prometheus/3.6.0/24.03-lts-sp2/Dockerfile) | prometheus 3.6.0 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[2.20.0-oe2203lts](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/prometheus/2.20.0/22.03-lts/Dockerfile)| Prometheus server 2.20.0 on openEuler 22.03-LTS | amd64, arm64 | |[2.50.1-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/prometheus/2.50.1/22.03-lts-sp3/Dockerfile)| Prometheus server 2.50.1 on openEuler 22.03-LTS-SP3 | amd64, arm64 | |[2.54.1-oe2003sp4](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/prometheus/2.54.1/20.03-lts-sp4/Dockerfile)| Prometheus server 2.54.1 on openEuler 20.03-LTS-SP4 | amd64, arm64 | diff --git a/Cloud/prometheus/meta.yml b/Cloud/prometheus/meta.yml index a485c57b..a1a901da 100644 --- a/Cloud/prometheus/meta.yml +++ b/Cloud/prometheus/meta.yml @@ -43,4 +43,6 @@ 3.3.1-oe2403sp1: 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 + path: 3.5.0/24.03-lts-sp1/Dockerfile +3.6.0-oe2403sp2: + path: 3.6.0/24.03-lts-sp2/Dockerfile \ No newline at end of file -- Gitee