Fetch the repository succeeded.
ARG BASE=openeuler/openeuler:22.03-lts-sp3
FROM ${BASE}
ARG TARGETARCH
ARG VERSION=1.7.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" ]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。