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 0000000000000000000000000000000000000000..d9a53008589c781904165f913882915ab21660da --- /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 4ec8ec57dec256afc174966501b8340cb50003ed..2602298d0c8d135dd6d15b29d993704ab4eb7872 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