diff --git a/contrib/alertmanager-arm64/0.15.0/Makefile b/contrib/alertmanager-arm64/0.15.0/Makefile index d7b7b40d2b9b1c2dd4e54eb234794fac4f204c21..79d4c9eecdc3242d46bec532df4c0509323f1edc 100644 --- a/contrib/alertmanager-arm64/0.15.0/Makefile +++ b/contrib/alertmanager-arm64/0.15.0/Makefile @@ -4,4 +4,4 @@ ci-arm64-build: .PHONY: ci-arm64-push ci-arm64-push: - docker push functions/alertmanager:0.15.0-arm64 \ No newline at end of file + docker push functions/alertmanager:0.15.0-arm64 diff --git a/contrib/alertmanager-armhf/0.15.0/Makefile b/contrib/alertmanager-armhf/0.15.0/Makefile index dbc45436540b48abf48f6921677f64ad63d31d81..eb8c055b6f35d95730d8819f0bb88ad2302d8a21 100644 --- a/contrib/alertmanager-armhf/0.15.0/Makefile +++ b/contrib/alertmanager-armhf/0.15.0/Makefile @@ -4,4 +4,4 @@ ci-armhf-build: .PHONY: ci-armhf-push ci-armhf-push: - docker push functions/alertmanager:0.15.0-armhf \ No newline at end of file + docker push functions/alertmanager:0.15.0-armhf diff --git a/contrib/prometheus-arm64/2.6.1/Dockerfile b/contrib/prometheus-arm64/2.6.1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..0f40b43e02acd27ae7df7df81deb7354ead4a2a3 --- /dev/null +++ b/contrib/prometheus-arm64/2.6.1/Dockerfile @@ -0,0 +1,31 @@ +FROM alpine:3.8 +WORKDIR /root/ + +RUN apk add --update libarchive-tools curl \ + && curl -sLf https://github.com/prometheus/prometheus/releases/download/v2.6.1/prometheus-2.6.1.linux-arm64.tar.gz > prometheus.tar.gz \ + && bsdtar -xvf prometheus.tar.gz -C ./ --strip-components=1 \ + && apk del libarchive-tools curl \ + && mkdir /etc/prometheus \ + && mkdir -p /usr/share/prometheus \ + && cp prometheus /bin/prometheus \ + && cp promtool /bin/promtool \ + && cp prometheus.yml /etc/prometheus/ \ + && cp -r console_libraries /usr/share/prometheus/ \ + && cp -r consoles /usr/share/prometheus/ \ + && rm -rf /root/* + +RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ +RUN mkdir -p /prometheus && \ + chown -R nobody:nogroup /etc/prometheus /prometheus + +USER nobody +EXPOSE 9090 +VOLUME [ "/prometheus" ] +WORKDIR /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/contrib/prometheus-arm64/2.6.1/Makefile b/contrib/prometheus-arm64/2.6.1/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..6dea1badcc2073c76a38b008d24eca35ce65f4f7 --- /dev/null +++ b/contrib/prometheus-arm64/2.6.1/Makefile @@ -0,0 +1,7 @@ +.PHONY: ci-arm64-build +ci-arm64-build: + docker build -t functions/prometheus:2.6.1-arm64 . + +.PHONY: ci-arm64-push +ci-arm64-push: + docker push functions/prometheus:2.6.1-arm64 diff --git a/contrib/prometheus-arm64/2.6.1/README.md b/contrib/prometheus-arm64/2.6.1/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d0a4d6e7ea40942ed9ca71b5888295c2da6dfbbc --- /dev/null +++ b/contrib/prometheus-arm64/2.6.1/README.md @@ -0,0 +1,13 @@ +# Prometheus for ARM64 + +## Building: + +```bash +make ci-arm64-build +``` + +## Pushing: + +```bash +make ci-arm64-push +``` diff --git a/contrib/prometheus-armhf/2.6.1/Dockerfile b/contrib/prometheus-armhf/2.6.1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..7c4ff8d60c3971dc06dd9cea6c1048d07d0aaa24 --- /dev/null +++ b/contrib/prometheus-armhf/2.6.1/Dockerfile @@ -0,0 +1,31 @@ +FROM alpine:3.8 +WORKDIR /root/ + +RUN apk add --update libarchive-tools curl \ + && curl -sLf https://github.com/prometheus/prometheus/releases/download/v2.6.1/prometheus-2.6.1.linux-armv7.tar.gz > prometheus.tar.gz \ + && bsdtar -xvf prometheus.tar.gz -C ./ --strip-components=1 \ + && apk del libarchive-tools curl \ + && mkdir /etc/prometheus \ + && mkdir -p /usr/share/prometheus \ + && cp prometheus /bin/prometheus \ + && cp promtool /bin/promtool \ + && cp prometheus.yml /etc/prometheus/ \ + && cp -r console_libraries /usr/share/prometheus/ \ + && cp -r consoles /usr/share/prometheus/ \ + && rm -rf /root/* + +RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ +RUN mkdir -p /prometheus && \ + chown -R nobody:nogroup /etc/prometheus /prometheus + +USER nobody +EXPOSE 9090 +VOLUME [ "/prometheus" ] +WORKDIR /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/contrib/prometheus-armhf/2.6.1/Makefile b/contrib/prometheus-armhf/2.6.1/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..9302b588015264ead187651609260b537898a075 --- /dev/null +++ b/contrib/prometheus-armhf/2.6.1/Makefile @@ -0,0 +1,7 @@ +.PHONY: ci-armhf-build +ci-armhf-build: + docker build -t functions/prometheus:2.6.1-armhf . + +.PHONY: ci-armhf-push +ci-armhf-push: + docker push functions/prometheus:2.6.1-armhf diff --git a/contrib/prometheus-armhf/2.6.1/README.md b/contrib/prometheus-armhf/2.6.1/README.md new file mode 100644 index 0000000000000000000000000000000000000000..195d792120fc6b73db182dc51b4d46d5f8022d1f --- /dev/null +++ b/contrib/prometheus-armhf/2.6.1/README.md @@ -0,0 +1,13 @@ +# Prometheus for ARMHF + +## Building: + +```bash +make ci-armhf-build +``` + +## Pushing: + +```bash +make ci-armhf-push +```