mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 14:23:25 +00:00
Add sample, stack and port to ARM64
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
28
contrib/prometheus/Dockerfile
Normal file
28
contrib/prometheus/Dockerfile
Normal file
@ -0,0 +1,28 @@
|
||||
FROM arm64v8/alpine:3.5
|
||||
|
||||
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" ]
|
||||
|
Reference in New Issue
Block a user