From 7eb15f023b261ea7408fe6d9019068d2e784e66a Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 29 Nov 2024 00:19:09 +0000 Subject: [PATCH 1/4] 24.03-lts update prometheus to 3.0.1 --- prometheus/3.0.1/24.03-lts/Dockerfile | 34 +++++++++++++++++++++++++++ prometheus/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.1/24.03-lts/Dockerfile diff --git a/prometheus/3.0.1/24.03-lts/Dockerfile b/prometheus/3.0.1/24.03-lts/Dockerfile new file mode 100644 index 00000000..013f1180 --- /dev/null +++ b/prometheus/3.0.1/24.03-lts/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:24.03-lts +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.0.1 + +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 f2480690..7d6a7dbf 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -29,4 +29,6 @@ 2.55.1-oe2203sp4: path: prometheus/2.55.1/22.03-lts-sp4/Dockerfile 2.55.1-oe2403lts: - path: prometheus/2.55.1/24.03-lts/Dockerfile \ No newline at end of file + path: prometheus/2.55.1/24.03-lts/Dockerfile +3.0.1-oe2403lts: + path: prometheus/3.0.1/24.03-lts/Dockerfile \ No newline at end of file -- Gitee From 67203a8d91d3f1ee0a5fc9a48b44c499a75b4181 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 29 Nov 2024 00:19:44 +0000 Subject: [PATCH 2/4] 22.03-lts-sp3 update prometheus to 3.0.1 --- prometheus/3.0.1/22.03-lts-sp3/Dockerfile | 34 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.1/22.03-lts-sp3/Dockerfile diff --git a/prometheus/3.0.1/22.03-lts-sp3/Dockerfile b/prometheus/3.0.1/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..5cd2c422 --- /dev/null +++ b/prometheus/3.0.1/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.1 + +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 7d6a7dbf..49352b24 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -31,4 +31,6 @@ 2.55.1-oe2403lts: path: prometheus/2.55.1/24.03-lts/Dockerfile 3.0.1-oe2403lts: - path: prometheus/3.0.1/24.03-lts/Dockerfile \ No newline at end of file + path: prometheus/3.0.1/24.03-lts/Dockerfile +3.0.1-oe2203sp3: + path: prometheus/3.0.1/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee From 9903d7cbf88ea4bda3190ee910ffd0a4c0479b9d Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 29 Nov 2024 00:20:20 +0000 Subject: [PATCH 3/4] 22.03-lts-sp4 update prometheus to 3.0.1 --- prometheus/3.0.1/22.03-lts-sp4/Dockerfile | 34 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.1/22.03-lts-sp4/Dockerfile diff --git a/prometheus/3.0.1/22.03-lts-sp4/Dockerfile b/prometheus/3.0.1/22.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..766fa741 --- /dev/null +++ b/prometheus/3.0.1/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.1 + +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 49352b24..482bbe52 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -33,4 +33,6 @@ 3.0.1-oe2403lts: path: prometheus/3.0.1/24.03-lts/Dockerfile 3.0.1-oe2203sp3: - path: prometheus/3.0.1/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: prometheus/3.0.1/22.03-lts-sp3/Dockerfile +3.0.1-oe2203sp4: + path: prometheus/3.0.1/22.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee From ce990e73496f026f837b64e5ea1473e02634da47 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Fri, 29 Nov 2024 00:20:54 +0000 Subject: [PATCH 4/4] 22.03-lts-sp1 update prometheus to 3.0.1 --- prometheus/3.0.1/22.03-lts-sp1/Dockerfile | 34 +++++++++++++++++++++++ prometheus/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 prometheus/3.0.1/22.03-lts-sp1/Dockerfile diff --git a/prometheus/3.0.1/22.03-lts-sp1/Dockerfile b/prometheus/3.0.1/22.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..80898b42 --- /dev/null +++ b/prometheus/3.0.1/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.1 + +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 482bbe52..56c094aa 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -35,4 +35,6 @@ 3.0.1-oe2203sp3: path: prometheus/3.0.1/22.03-lts-sp3/Dockerfile 3.0.1-oe2203sp4: - path: prometheus/3.0.1/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: prometheus/3.0.1/22.03-lts-sp4/Dockerfile +3.0.1-oe2203sp1: + path: prometheus/3.0.1/22.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee