From f897a0740c73ea8df8bb43208f096c6f97b24980 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 20 Feb 2025 15:11:33 +0000 Subject: [PATCH 1/4] 24.03-lts update prometheus to 3.2.0 --- prometheus/3.2.0/24.03-lts/Dockerfile | 32 +++++++++++++++++++++++++++ prometheus/meta.yml | 4 +++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.2.0/24.03-lts/Dockerfile diff --git a/prometheus/3.2.0/24.03-lts/Dockerfile b/prometheus/3.2.0/24.03-lts/Dockerfile new file mode 100644 index 0000000..05ee5a4 --- /dev/null +++ b/prometheus/3.2.0/24.03-lts/Dockerfile @@ -0,0 +1,32 @@ +ARG BASE=openeuler/openeuler:24.03-lts +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.2.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/prometheus/meta.yml b/prometheus/meta.yml index 5237161..78fb7ed 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -37,4 +37,6 @@ 3.0.0-oe2203sp4: path: prometheus/3.0.0/22.03-lts-sp4/Dockerfile 3.0.0-oe2203sp1: - path: prometheus/3.0.0/22.03-lts-sp1/Dockerfile \ No newline at end of file + path: prometheus/3.0.0/22.03-lts-sp1/Dockerfile +3.2.0-oe2403lts: + path: prometheus/3.2.0/24.03-lts/Dockerfile \ No newline at end of file -- Gitee From c8f02c3afd6bd34d6583b4361262a33f947bbbb3 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 20 Feb 2025 15:12:49 +0000 Subject: [PATCH 2/4] 22.03-lts-sp3 update prometheus to 3.2.0 --- prometheus/3.2.0/22.03-lts-sp3/Dockerfile | 32 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.2.0/22.03-lts-sp3/Dockerfile diff --git a/prometheus/3.2.0/22.03-lts-sp3/Dockerfile b/prometheus/3.2.0/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000..2074f9f --- /dev/null +++ b/prometheus/3.2.0/22.03-lts-sp3/Dockerfile @@ -0,0 +1,32 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.2.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/prometheus/meta.yml b/prometheus/meta.yml index 78fb7ed..5fc4fd9 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -39,4 +39,6 @@ 3.0.0-oe2203sp1: path: prometheus/3.0.0/22.03-lts-sp1/Dockerfile 3.2.0-oe2403lts: - path: prometheus/3.2.0/24.03-lts/Dockerfile \ No newline at end of file + path: prometheus/3.2.0/24.03-lts/Dockerfile +3.2.0-oe2203sp3: + path: prometheus/3.2.0/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee From 7cbe1a09ebab1402167dcc30344590c44fccdd0b Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 20 Feb 2025 15:14:07 +0000 Subject: [PATCH 3/4] 22.03-lts-sp4 update prometheus to 3.2.0 --- prometheus/3.2.0/22.03-lts-sp4/Dockerfile | 32 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.2.0/22.03-lts-sp4/Dockerfile diff --git a/prometheus/3.2.0/22.03-lts-sp4/Dockerfile b/prometheus/3.2.0/22.03-lts-sp4/Dockerfile new file mode 100644 index 0000000..dd350fd --- /dev/null +++ b/prometheus/3.2.0/22.03-lts-sp4/Dockerfile @@ -0,0 +1,32 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.2.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/prometheus/meta.yml b/prometheus/meta.yml index 5fc4fd9..2498653 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -41,4 +41,6 @@ 3.2.0-oe2403lts: path: prometheus/3.2.0/24.03-lts/Dockerfile 3.2.0-oe2203sp3: - path: prometheus/3.2.0/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: prometheus/3.2.0/22.03-lts-sp3/Dockerfile +3.2.0-oe2203sp4: + path: prometheus/3.2.0/22.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee From 516d9745c67ad76cbf8aaa0badda85f45c2b3731 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 20 Feb 2025 15:15:01 +0000 Subject: [PATCH 4/4] 22.03-lts-sp1 update prometheus to 3.2.0 --- prometheus/3.2.0/22.03-lts-sp1/Dockerfile | 32 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.2.0/22.03-lts-sp1/Dockerfile diff --git a/prometheus/3.2.0/22.03-lts-sp1/Dockerfile b/prometheus/3.2.0/22.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..e329604 --- /dev/null +++ b/prometheus/3.2.0/22.03-lts-sp1/Dockerfile @@ -0,0 +1,32 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.2.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/prometheus/meta.yml b/prometheus/meta.yml index 2498653..34c5bcc 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -43,4 +43,6 @@ 3.2.0-oe2203sp3: path: prometheus/3.2.0/22.03-lts-sp3/Dockerfile 3.2.0-oe2203sp4: - path: prometheus/3.2.0/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: prometheus/3.2.0/22.03-lts-sp4/Dockerfile +3.2.0-oe2203sp1: + path: prometheus/3.2.0/22.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee