From bb056275617f6990076528832172ca1258f62eb2 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Wed, 8 Jan 2025 03:28:47 +0000 Subject: [PATCH 1/4] 24.03-lts update prometheus to 3.1.0 --- prometheus/3.1.0/24.03-lts/Dockerfile | 32 +++++++++++++++++++++++++++ prometheus/meta.yml | 4 +++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.1.0/24.03-lts/Dockerfile diff --git a/prometheus/3.1.0/24.03-lts/Dockerfile b/prometheus/3.1.0/24.03-lts/Dockerfile new file mode 100644 index 00000000..597cb33a --- /dev/null +++ b/prometheus/3.1.0/24.03-lts/Dockerfile @@ -0,0 +1,32 @@ +ARG BASE=openeuler/openeuler:24.03-lts +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.1.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 5237161d..1363272d 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.1.0-oe2403lts: + path: prometheus/3.1.0/24.03-lts/Dockerfile \ No newline at end of file -- Gitee From d9176dfd57a1893b35b67185603126d730ba35a2 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Wed, 8 Jan 2025 03:29:26 +0000 Subject: [PATCH 2/4] 22.03-lts-sp3 update prometheus to 3.1.0 --- prometheus/3.1.0/22.03-lts-sp3/Dockerfile | 32 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.1.0/22.03-lts-sp3/Dockerfile diff --git a/prometheus/3.1.0/22.03-lts-sp3/Dockerfile b/prometheus/3.1.0/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..e0337e28 --- /dev/null +++ b/prometheus/3.1.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.1.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 1363272d..4faa6daf 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.1.0-oe2403lts: - path: prometheus/3.1.0/24.03-lts/Dockerfile \ No newline at end of file + path: prometheus/3.1.0/24.03-lts/Dockerfile +3.1.0-oe2203sp3: + path: prometheus/3.1.0/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee From f378fd916c21d6f168a50824913a46f90696f24f Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Wed, 8 Jan 2025 03:30:05 +0000 Subject: [PATCH 3/4] 22.03-lts-sp4 update prometheus to 3.1.0 --- prometheus/3.1.0/22.03-lts-sp4/Dockerfile | 32 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.1.0/22.03-lts-sp4/Dockerfile diff --git a/prometheus/3.1.0/22.03-lts-sp4/Dockerfile b/prometheus/3.1.0/22.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..db56010f --- /dev/null +++ b/prometheus/3.1.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.1.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 4faa6daf..ae254507 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -41,4 +41,6 @@ 3.1.0-oe2403lts: path: prometheus/3.1.0/24.03-lts/Dockerfile 3.1.0-oe2203sp3: - path: prometheus/3.1.0/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: prometheus/3.1.0/22.03-lts-sp3/Dockerfile +3.1.0-oe2203sp4: + path: prometheus/3.1.0/22.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee From 58c1efe5b44ed5a76a136ef9531fa6804b68983d Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Wed, 8 Jan 2025 03:30:43 +0000 Subject: [PATCH 4/4] 22.03-lts-sp1 update prometheus to 3.1.0 --- prometheus/3.1.0/22.03-lts-sp1/Dockerfile | 32 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.1.0/22.03-lts-sp1/Dockerfile diff --git a/prometheus/3.1.0/22.03-lts-sp1/Dockerfile b/prometheus/3.1.0/22.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..5bc283b6 --- /dev/null +++ b/prometheus/3.1.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.1.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 ae254507..854f0cd3 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -43,4 +43,6 @@ 3.1.0-oe2203sp3: path: prometheus/3.1.0/22.03-lts-sp3/Dockerfile 3.1.0-oe2203sp4: - path: prometheus/3.1.0/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: prometheus/3.1.0/22.03-lts-sp4/Dockerfile +3.1.0-oe2203sp1: + path: prometheus/3.1.0/22.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee