From a35e7f8cb63c9a358cf646245ef19f3087c850ec Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 16 Jul 2024 02:34:41 +0000 Subject: [PATCH] oe2203sp3 update prometheus-pushgateway to 1.9.0 --- .../1.9.0/22.03-lts-sp3/Dockerfile | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 prometheus-pushgateway/1.9.0/22.03-lts-sp3/Dockerfile diff --git a/prometheus-pushgateway/1.9.0/22.03-lts-sp3/Dockerfile b/prometheus-pushgateway/1.9.0/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000..4e5cd03 --- /dev/null +++ b/prometheus-pushgateway/1.9.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.9.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" ] -- Gitee