From e7632d82eb455324ab307fdcf2398ab7578e8a55 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 24 Sep 2024 07:27:06 +0000 Subject: [PATCH] oe2203sp3 update prometheus-pushgateway to 1.10.0 --- .../1.10.0/22.03-lts-sp3/Dockerfile | 20 +++++++++++++++++++ prometheus-pushgateway/meta.yml | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 prometheus-pushgateway/1.10.0/22.03-lts-sp3/Dockerfile diff --git a/prometheus-pushgateway/1.10.0/22.03-lts-sp3/Dockerfile b/prometheus-pushgateway/1.10.0/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..d9a53008 --- /dev/null +++ b/prometheus-pushgateway/1.10.0/22.03-lts-sp3/Dockerfile @@ -0,0 +1,20 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=1.10.0 + +RUN yum update -y && yum install -y wget && yum clean all && \ + wget -O pushgateway.tar.gz https://github.com/prometheus/pushgateway/releases/download/v${VERSION}/pushgateway-${VERSION}.linux-${TARGETARCH}.tar.gz && \ + mkdir /pushgateway && tar -zxvf pushgateway.tar.gz -C /pushgateway --strip-components 1 && \ + mv /pushgateway/pushgateway /bin/pushgateway && \ + rm -rf pushgateway.tar.gz /pushgateway/ + +RUN mkdir -p /pushgateway && \ + groupadd -r pushgateway && useradd -r -g pushgateway pushgateway && \ + chown pushgateway:pushgateway /pushgateway /bin/pushgateway + +WORKDIR /pushgateway +USER pushgateway +EXPOSE 9091 +ENTRYPOINT [ "/bin/pushgateway" ] diff --git a/prometheus-pushgateway/meta.yml b/prometheus-pushgateway/meta.yml index 4ec8ec57..2602298d 100644 --- a/prometheus-pushgateway/meta.yml +++ b/prometheus-pushgateway/meta.yml @@ -1,2 +1,4 @@ 1.7.0-oe2203sp3: - path: prometheus-pushgateway/1.7.0/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: prometheus-pushgateway/1.7.0/22.03-lts-sp3/Dockerfile +1.10.0-oe2203sp3: + path: prometheus-pushgateway/1.10.0/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee