From 4b0348ccb785ca6241fb5c17dd2eb6fc35ac3bb9 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 01:56:02 +0000 Subject: [PATCH 1/5] 24.03-lts update prometheus to 3.0.0-beta.0 --- prometheus/3.0.0-beta.0/24.03-lts/Dockerfile | 34 ++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.0-beta.0/24.03-lts/Dockerfile diff --git a/prometheus/3.0.0-beta.0/24.03-lts/Dockerfile b/prometheus/3.0.0-beta.0/24.03-lts/Dockerfile new file mode 100644 index 00000000..819064bf --- /dev/null +++ b/prometheus/3.0.0-beta.0/24.03-lts/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:24.03-lts +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.0.0-beta.0 + +RUN yum -y update && yum -y install wget && yum clean all && \ + wget -O 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/console_libraries/ /usr/share/prometheus/console_libraries/ && \ + mv /prometheus/consoles/ /usr/share/prometheus/consoles/ && \ + 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 7b9c2376..b7209028 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -1,4 +1,6 @@ 2.50.1-oe2203sp3: path: prometheus/2.50.1/22.03-lts-sp3/Dockerfile 2.20.0-oe2203lts: - path: prometheus/2.20.0/22.03-lts/Dockerfile \ No newline at end of file + path: prometheus/2.20.0/22.03-lts/Dockerfile +3.0.0-beta.0-oe2403lts: + path: prometheus/3.0.0-beta.0/24.03-lts/Dockerfile \ No newline at end of file -- Gitee From 8d95fe13d4c149503c25058c3a536a0a6f417fc1 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 01:56:24 +0000 Subject: [PATCH 2/5] 22.03-lts-sp3 update prometheus to 3.0.0-beta.0 --- .../3.0.0-beta.0/22.03-lts-sp3/Dockerfile | 34 +++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.0-beta.0/22.03-lts-sp3/Dockerfile diff --git a/prometheus/3.0.0-beta.0/22.03-lts-sp3/Dockerfile b/prometheus/3.0.0-beta.0/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..cbc5005d --- /dev/null +++ b/prometheus/3.0.0-beta.0/22.03-lts-sp3/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.0.0-beta.0 + +RUN yum -y update && yum -y install wget && yum clean all && \ + wget -O 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/console_libraries/ /usr/share/prometheus/console_libraries/ && \ + mv /prometheus/consoles/ /usr/share/prometheus/consoles/ && \ + 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 b7209028..beb4cf9f 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -3,4 +3,6 @@ 2.20.0-oe2203lts: path: prometheus/2.20.0/22.03-lts/Dockerfile 3.0.0-beta.0-oe2403lts: - path: prometheus/3.0.0-beta.0/24.03-lts/Dockerfile \ No newline at end of file + path: prometheus/3.0.0-beta.0/24.03-lts/Dockerfile +3.0.0-beta.0-oe2203sp3: + path: prometheus/3.0.0-beta.0/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee From 8de4003b8e3959a7cf8dae7b51915cbb50d7f7a2 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 01:56:47 +0000 Subject: [PATCH 3/5] 22.03-lts-sp4 update prometheus to 3.0.0-beta.0 --- .../3.0.0-beta.0/22.03-lts-sp4/Dockerfile | 34 +++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.0-beta.0/22.03-lts-sp4/Dockerfile diff --git a/prometheus/3.0.0-beta.0/22.03-lts-sp4/Dockerfile b/prometheus/3.0.0-beta.0/22.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..268248c8 --- /dev/null +++ b/prometheus/3.0.0-beta.0/22.03-lts-sp4/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.0.0-beta.0 + +RUN yum -y update && yum -y install wget && yum clean all && \ + wget -O 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/console_libraries/ /usr/share/prometheus/console_libraries/ && \ + mv /prometheus/consoles/ /usr/share/prometheus/consoles/ && \ + 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 beb4cf9f..72872b24 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -5,4 +5,6 @@ 3.0.0-beta.0-oe2403lts: path: prometheus/3.0.0-beta.0/24.03-lts/Dockerfile 3.0.0-beta.0-oe2203sp3: - path: prometheus/3.0.0-beta.0/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: prometheus/3.0.0-beta.0/22.03-lts-sp3/Dockerfile +3.0.0-beta.0-oe2203sp4: + path: prometheus/3.0.0-beta.0/22.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee From 98635df8dd73d8caf3cce6ffba7c4f2e97c103f9 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 01:57:12 +0000 Subject: [PATCH 4/5] 22.03-lts-sp1 update prometheus to 3.0.0-beta.0 --- .../3.0.0-beta.0/22.03-lts-sp1/Dockerfile | 34 +++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.0-beta.0/22.03-lts-sp1/Dockerfile diff --git a/prometheus/3.0.0-beta.0/22.03-lts-sp1/Dockerfile b/prometheus/3.0.0-beta.0/22.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..b63f4eff --- /dev/null +++ b/prometheus/3.0.0-beta.0/22.03-lts-sp1/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.0.0-beta.0 + +RUN yum -y update && yum -y install wget && yum clean all && \ + wget -O 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/console_libraries/ /usr/share/prometheus/console_libraries/ && \ + mv /prometheus/consoles/ /usr/share/prometheus/consoles/ && \ + 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 72872b24..25be5ef0 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -7,4 +7,6 @@ 3.0.0-beta.0-oe2203sp3: path: prometheus/3.0.0-beta.0/22.03-lts-sp3/Dockerfile 3.0.0-beta.0-oe2203sp4: - path: prometheus/3.0.0-beta.0/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: prometheus/3.0.0-beta.0/22.03-lts-sp4/Dockerfile +3.0.0-beta.0-oe2203sp1: + path: prometheus/3.0.0-beta.0/22.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee From 1d6d9128b2cacdd2689127672357d2efb564925e Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 01:57:36 +0000 Subject: [PATCH 5/5] 20.03-lts-sp4 update prometheus to 3.0.0-beta.0 --- .../3.0.0-beta.0/20.03-lts-sp4/Dockerfile | 34 +++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.0-beta.0/20.03-lts-sp4/Dockerfile diff --git a/prometheus/3.0.0-beta.0/20.03-lts-sp4/Dockerfile b/prometheus/3.0.0-beta.0/20.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..d9c9508a --- /dev/null +++ b/prometheus/3.0.0-beta.0/20.03-lts-sp4/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:20.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.0.0-beta.0 + +RUN yum -y update && yum -y install wget && yum clean all && \ + wget -O 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/console_libraries/ /usr/share/prometheus/console_libraries/ && \ + mv /prometheus/consoles/ /usr/share/prometheus/consoles/ && \ + 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 25be5ef0..f9606c81 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -9,4 +9,6 @@ 3.0.0-beta.0-oe2203sp4: path: prometheus/3.0.0-beta.0/22.03-lts-sp4/Dockerfile 3.0.0-beta.0-oe2203sp1: - path: prometheus/3.0.0-beta.0/22.03-lts-sp1/Dockerfile \ No newline at end of file + path: prometheus/3.0.0-beta.0/22.03-lts-sp1/Dockerfile +3.0.0-beta.0-oe2003sp4: + path: prometheus/3.0.0-beta.0/20.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee