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 0000000000000000000000000000000000000000..80898b427d8a5e97358568f5fe5f159c1db76e13 --- /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/3.0.1/22.03-lts-sp3/Dockerfile b/prometheus/3.0.1/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..5cd2c42258feef6dfed2fe96e536f41a7e2fe3dc --- /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/3.0.1/22.03-lts-sp4/Dockerfile b/prometheus/3.0.1/22.03-lts-sp4/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..766fa741620ea08fdea187c44760f657a23067a4 --- /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/3.0.1/24.03-lts/Dockerfile b/prometheus/3.0.1/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..013f1180defa26b563943a44ac6de9ef84f66b62 --- /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 f2480690e2b36cd98fd040be546f908500742e43..56c094aa373faa5b6582829dfa28f329c87cea46 100644 --- a/prometheus/meta.yml +++ b/prometheus/meta.yml @@ -29,4 +29,12 @@ 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 +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 +3.0.1-oe2203sp1: + path: prometheus/3.0.1/22.03-lts-sp1/Dockerfile \ No newline at end of file