Upgrade armhf/arm64 imasges for Prometheus

Covers Prometheus and AlertManagerx

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (VMware)
2018-08-28 19:50:29 +00:00
parent 220a5d61ba
commit 2a2380a10b
10 changed files with 36 additions and 68 deletions

View 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" ]

View File

@ -0,0 +1,3 @@
build:
docker build -t alexellis2/alertmanager:v0.15.0-arm64 .

View File

@ -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" ]

View File

@ -0,0 +1,5 @@
Building:
```
docker build -t functions/alertmanager:0.15.0-rc.0-armhf .
```

View File

@ -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" ]

View File

@ -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" ]

View File

@ -1,3 +0,0 @@
build:
docker build -t alexellis2/prometheus:2.2.0-arm64 .

View File

@ -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", \

View File

@ -0,0 +1,3 @@
build:
docker build -t alexellis2/prometheus:2.3.1-arm64 .