mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Add ARM builds of Prometheus for 2.6.1
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
This commit is contained in:
parent
0883d1db0a
commit
766e5e4d2c
@ -4,4 +4,4 @@ ci-arm64-build:
|
||||
|
||||
.PHONY: ci-arm64-push
|
||||
ci-arm64-push:
|
||||
docker push functions/alertmanager:0.15.0-arm64
|
||||
docker push functions/alertmanager:0.15.0-arm64
|
||||
|
@ -4,4 +4,4 @@ ci-armhf-build:
|
||||
|
||||
.PHONY: ci-armhf-push
|
||||
ci-armhf-push:
|
||||
docker push functions/alertmanager:0.15.0-armhf
|
||||
docker push functions/alertmanager:0.15.0-armhf
|
||||
|
31
contrib/prometheus-arm64/2.6.1/Dockerfile
Normal file
31
contrib/prometheus-arm64/2.6.1/Dockerfile
Normal file
@ -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" ]
|
||||
|
7
contrib/prometheus-arm64/2.6.1/Makefile
Normal file
7
contrib/prometheus-arm64/2.6.1/Makefile
Normal file
@ -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
|
13
contrib/prometheus-arm64/2.6.1/README.md
Normal file
13
contrib/prometheus-arm64/2.6.1/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Prometheus for ARM64
|
||||
|
||||
## Building:
|
||||
|
||||
```bash
|
||||
make ci-arm64-build
|
||||
```
|
||||
|
||||
## Pushing:
|
||||
|
||||
```bash
|
||||
make ci-arm64-push
|
||||
```
|
31
contrib/prometheus-armhf/2.6.1/Dockerfile
Normal file
31
contrib/prometheus-armhf/2.6.1/Dockerfile
Normal file
@ -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" ]
|
||||
|
7
contrib/prometheus-armhf/2.6.1/Makefile
Normal file
7
contrib/prometheus-armhf/2.6.1/Makefile
Normal file
@ -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
|
13
contrib/prometheus-armhf/2.6.1/README.md
Normal file
13
contrib/prometheus-armhf/2.6.1/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Prometheus for ARMHF
|
||||
|
||||
## Building:
|
||||
|
||||
```bash
|
||||
make ci-armhf-build
|
||||
```
|
||||
|
||||
## Pushing:
|
||||
|
||||
```bash
|
||||
make ci-armhf-push
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user