From 00c11f5373b7c4fe88e069a925a07f2be23be2aa Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 25 Oct 2024 00:15:29 +0000 Subject: [PATCH 1/5] 24.03-lts update prometheus to 2.55.0 --- prometheus/2.55.0/24.03-lts/Dockerfile | 34 ++++++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/2.55.0/24.03-lts/Dockerfile diff --git a/prometheus/2.55.0/24.03-lts/Dockerfile b/prometheus/2.55.0/24.03-lts/Dockerfile new file mode 100644 index 00000000..93ddd3f1 --- /dev/null +++ b/prometheus/2.55.0/24.03-lts/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:24.03-lts +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=2.55.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/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 7f7249e1..b8969074 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -11,4 +11,6 @@ 2.54.1-oe2203sp1: path: prometheus/2.54.1/22.03-lts-sp1/Dockerfile 2.54.1-oe2003sp4: - path: prometheus/2.54.1/20.03-lts-sp4/Dockerfile \ No newline at end of file + path: prometheus/2.54.1/20.03-lts-sp4/Dockerfile +2.55.0-oe2403lts: + path: prometheus/2.55.0/24.03-lts/Dockerfile \ No newline at end of file -- Gitee From c03d3fb4913674bd8361d56fb2591a15c116ff55 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 25 Oct 2024 00:15:57 +0000 Subject: [PATCH 2/5] 22.03-lts-sp3 update prometheus to 2.55.0 --- prometheus/2.55.0/22.03-lts-sp3/Dockerfile | 34 ++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/2.55.0/22.03-lts-sp3/Dockerfile diff --git a/prometheus/2.55.0/22.03-lts-sp3/Dockerfile b/prometheus/2.55.0/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..4137cfef --- /dev/null +++ b/prometheus/2.55.0/22.03-lts-sp3/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=2.55.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/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 b8969074..4315802b 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -13,4 +13,6 @@ 2.54.1-oe2003sp4: path: prometheus/2.54.1/20.03-lts-sp4/Dockerfile 2.55.0-oe2403lts: - path: prometheus/2.55.0/24.03-lts/Dockerfile \ No newline at end of file + path: prometheus/2.55.0/24.03-lts/Dockerfile +2.55.0-oe2203sp3: + path: prometheus/2.55.0/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee From 67e8b6cabf5191a03d89097b3d3f8dfc39d36f77 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 25 Oct 2024 00:16:25 +0000 Subject: [PATCH 3/5] 22.03-lts-sp4 update prometheus to 2.55.0 --- prometheus/2.55.0/22.03-lts-sp4/Dockerfile | 34 ++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/2.55.0/22.03-lts-sp4/Dockerfile diff --git a/prometheus/2.55.0/22.03-lts-sp4/Dockerfile b/prometheus/2.55.0/22.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..7da60a5f --- /dev/null +++ b/prometheus/2.55.0/22.03-lts-sp4/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=2.55.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/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 4315802b..c36dc294 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -15,4 +15,6 @@ 2.55.0-oe2403lts: path: prometheus/2.55.0/24.03-lts/Dockerfile 2.55.0-oe2203sp3: - path: prometheus/2.55.0/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: prometheus/2.55.0/22.03-lts-sp3/Dockerfile +2.55.0-oe2203sp4: + path: prometheus/2.55.0/22.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee From b8bfebf8826c43b16b1db2d6334f26e493d1914f Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 25 Oct 2024 00:16:55 +0000 Subject: [PATCH 4/5] 22.03-lts-sp1 update prometheus to 2.55.0 --- prometheus/2.55.0/22.03-lts-sp1/Dockerfile | 34 ++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/2.55.0/22.03-lts-sp1/Dockerfile diff --git a/prometheus/2.55.0/22.03-lts-sp1/Dockerfile b/prometheus/2.55.0/22.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..7bb2c450 --- /dev/null +++ b/prometheus/2.55.0/22.03-lts-sp1/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=2.55.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/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 c36dc294..30c3c5f1 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -17,4 +17,6 @@ 2.55.0-oe2203sp3: path: prometheus/2.55.0/22.03-lts-sp3/Dockerfile 2.55.0-oe2203sp4: - path: prometheus/2.55.0/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: prometheus/2.55.0/22.03-lts-sp4/Dockerfile +2.55.0-oe2203sp1: + path: prometheus/2.55.0/22.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee From b32af392c3b35a987b5ecfd4cfe92b28d4c81fc2 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 25 Oct 2024 00:17:24 +0000 Subject: [PATCH 5/5] 20.03-lts-sp4 update prometheus to 2.55.0 --- prometheus/2.55.0/20.03-lts-sp4/Dockerfile | 34 ++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/2.55.0/20.03-lts-sp4/Dockerfile diff --git a/prometheus/2.55.0/20.03-lts-sp4/Dockerfile b/prometheus/2.55.0/20.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..bbc31b05 --- /dev/null +++ b/prometheus/2.55.0/20.03-lts-sp4/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:20.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=2.55.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/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 30c3c5f1..68a644ed 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -19,4 +19,6 @@ 2.55.0-oe2203sp4: path: prometheus/2.55.0/22.03-lts-sp4/Dockerfile 2.55.0-oe2203sp1: - path: prometheus/2.55.0/22.03-lts-sp1/Dockerfile \ No newline at end of file + path: prometheus/2.55.0/22.03-lts-sp1/Dockerfile +2.55.0-oe2003sp4: + path: prometheus/2.55.0/20.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee