Add sample, stack and port to ARM64

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-09-22 10:27:05 +00:00
parent b04dffdc2f
commit a7de20c29d
5 changed files with 120 additions and 0 deletions

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