2016-01-28 18:00:25 +08:00
|
|
|
#
|
|
|
|
# Dockerfile for cadvisor
|
|
|
|
#
|
|
|
|
|
2016-07-11 10:11:29 +08:00
|
|
|
FROM alpine:edge
|
2016-05-01 09:06:20 +08:00
|
|
|
MAINTAINER kev <noreply@easypi.info>
|
2016-01-28 18:00:25 +08:00
|
|
|
|
2016-07-12 21:09:27 +08:00
|
|
|
ENV CADVISOR_VERSION 0.23.4
|
|
|
|
|
2016-01-28 18:00:25 +08:00
|
|
|
RUN set -xe \
|
2016-07-12 21:09:27 +08:00
|
|
|
&& apk add --no-cache ca-certificates openssl device-mapper zfs \
|
2016-07-11 10:11:29 +08:00
|
|
|
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-2.23-r3.apk \
|
|
|
|
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-bin-2.23-r3.apk \
|
|
|
|
&& apk add --allow-untrusted glibc-2.23-r3.apk glibc-bin-2.23-r3.apk \
|
2016-07-12 21:09:27 +08:00
|
|
|
&& rm -f *.apk
|
2016-01-28 18:00:25 +08:00
|
|
|
|
|
|
|
RUN set -xe \
|
2016-07-12 21:09:27 +08:00
|
|
|
&& wget https://github.com/google/cadvisor/releases/download/v${CADVISOR_VERSION}/cadvisor -O /usr/bin/cadvisor \
|
2016-01-28 18:00:25 +08:00
|
|
|
&& chmod +x /usr/bin/cadvisor
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2016-07-12 21:09:27 +08:00
|
|
|
ENTRYPOINT ["cadvisor", "-logtostderr"]
|