forked from openfaas/faas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alex Ellis <[email protected]>
- Loading branch information
Showing
4 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
contrib/prometheus-arm64/Dockerfile → contrib/prometheus-arm64/1.5.2/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM arm64v8/alpine:3.5 | ||
FROM alpine:3.6 | ||
|
||
workdir /root | ||
RUN apk add --update libarchive-tools | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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" ] | ||
|
||
|