mirror of
https://github.com/openfaas/faas.git
synced 2025-06-23 15:23:29 +00:00
Upgrade armhf/arm64 imasges for Prometheus
Covers Prometheus and AlertManagerx Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
17
contrib/alertmanager-arm64/v0.15.0/Dockerfile
Normal file
17
contrib/alertmanager-arm64/v0.15.0/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM alpine:3.7
|
||||
WORKDIR /root
|
||||
RUN apk add --update libarchive-tools
|
||||
ADD https://github.com/prometheus/alertmanager/releases/download/v0.15.0/alertmanager-0.15.0.linux-arm64.tar.gz /root/
|
||||
RUN bsdtar -xvf *.tar.gz -C ./ --strip-components=1
|
||||
RUN mkdir /etc/alertmanager
|
||||
|
||||
RUN cp alertmanager /bin/alertmanager
|
||||
RUN cp alertmanager.yml /etc/alertmanager/alertmanager.yml
|
||||
|
||||
EXPOSE 9093
|
||||
VOLUME [ "/alertmanager" ]
|
||||
WORKDIR /alertmanager
|
||||
|
||||
ENTRYPOINT [ "/bin/alertmanager" ]
|
||||
CMD [ "--config.file=/etc/alertmanager/alertmanager.yml", \
|
||||
"--storage.path=/alertmanager" ]
|
3
contrib/alertmanager-arm64/v0.15.0/Makefile
Normal file
3
contrib/alertmanager-arm64/v0.15.0/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
build:
|
||||
docker build -t alexellis2/alertmanager:v0.15.0-arm64 .
|
||||
|
@ -1,16 +1,17 @@
|
||||
FROM alpine:3.6
|
||||
FROM alpine:3.7
|
||||
WORKDIR /root
|
||||
RUN apk add --update libarchive-tools
|
||||
ADD https://github.com/prometheus/alertmanager/releases/download/v0.15.0-rc.0/alertmanager-0.15.0-rc.0.linux-armv7.tar.gz /root/
|
||||
ADD https://github.com/prometheus/alertmanager/releases/download/v0.15.0/alertmanager-0.15.0.linux-armv7.tar.gz /root/
|
||||
RUN bsdtar -xvf *.tar.gz -C ./ --strip-components=1
|
||||
RUN mkdir /etc/alertmanager
|
||||
|
||||
RUN cp alertmanager /bin/alertmanager
|
||||
RUN cp simple.yml /etc/alertmanager/config.yml
|
||||
RUN cp alertmanager.yml /etc/alertmanager/alertmanager.yml
|
||||
|
||||
EXPOSE 9093
|
||||
VOLUME [ "/alertmanager" ]
|
||||
WORKDIR /alertmanager
|
||||
|
||||
ENTRYPOINT [ "/bin/alertmanager" ]
|
||||
CMD [ "-config.file=/etc/alertmanager/config.yml", \
|
||||
"-storage.path=/alertmanager" ]
|
||||
CMD [ "--config.file=/etc/alertmanager/alertmanager.yml", \
|
||||
"--storage.path=/alertmanager" ]
|
5
contrib/alertmanager-armhf/0.15.0/README.md
Normal file
5
contrib/alertmanager-armhf/0.15.0/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
Building:
|
||||
|
||||
```
|
||||
docker build -t functions/alertmanager:0.15.0-rc.0-armhf .
|
||||
```
|
@ -1,28 +0,0 @@
|
||||
FROM alpine:3.6
|
||||
|
||||
workdir /root
|
||||
RUN apk add --update libarchive-tools
|
||||
|
||||
ADD https://github.com/prometheus/prometheus/releases/download/v1.5.2/prometheus-1.5.2.linux-arm64.tar.gz /root/
|
||||
RUN bsdtar -xvf prometheus-*.tar.gz -C ./ --strip-components=1
|
||||
|
||||
RUN mkdir -p /usr/share/prometheus
|
||||
RUN mkdir -p /etc/prometheus
|
||||
|
||||
RUN cp prometheus /bin/prometheus
|
||||
RUN cp promtool /bin/promtool
|
||||
RUN cp prometheus.yml /etc/prometheus/prometheus.yml
|
||||
RUN cp -r console_libraries/ /usr/share/prometheus/console_libraries/
|
||||
RUN cp -r consoles/ /usr/share/prometheus/consoles/
|
||||
|
||||
#RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/
|
||||
|
||||
EXPOSE 9090
|
||||
VOLUME [ "/prometheus" ]
|
||||
WORKDIR /prometheus
|
||||
ENTRYPOINT [ "/bin/prometheus" ]
|
||||
CMD [ "-config.file=/etc/prometheus/prometheus.yml", \
|
||||
"-storage.local.path=/prometheus", \
|
||||
"-web.console.libraries=/usr/share/prometheus/console_libraries", \
|
||||
"-web.console.templates=/usr/share/prometheus/consoles" ]
|
||||
|
@ -1,31 +0,0 @@
|
||||
FROM alpine:3.6
|
||||
WORKDIR /root/
|
||||
|
||||
RUN apk add --update libarchive-tools curl \
|
||||
&& curl -sLf https://github.com/prometheus/prometheus/releases/download/v2.1.0/prometheus-2.1.0.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" ]
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
build:
|
||||
docker build -t alexellis2/prometheus:2.2.0-arm64 .
|
||||
|
@ -2,7 +2,7 @@ FROM alpine:3.7
|
||||
WORKDIR /root/
|
||||
|
||||
RUN apk add --update libarchive-tools curl \
|
||||
&& curl -sLf https://github.com/prometheus/prometheus/releases/download/v2.2.0/prometheus-2.2.0.linux-armv7.tar.gz > prometheus.tar.gz \
|
||||
&& curl -sLf https://github.com/prometheus/prometheus/releases/download/v2.3.1/prometheus-2.3.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 \
|
||||
@ -22,6 +22,7 @@ USER nobody
|
||||
EXPOSE 9090
|
||||
VOLUME [ "/prometheus" ]
|
||||
WORKDIR /prometheus
|
||||
|
||||
ENTRYPOINT [ "/bin/prometheus" ]
|
||||
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \
|
||||
"--storage.tsdb.path=/prometheus", \
|
3
contrib/prometheus-arm64/2.3/Makefile
Normal file
3
contrib/prometheus-arm64/2.3/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
build:
|
||||
docker build -t alexellis2/prometheus:2.3.1-arm64 .
|
||||
|
Reference in New Issue
Block a user