Cadvisor for influxdb (ADD Memory RSS)
341
ADD Memory RSS for influxdb pulling.
https://github.com/alicek106/cadvisor/commit/ed3d9c40ae83ac377891061a7dc22f92ccd53f8c
https://github.com/google/cadvisor/blob/master/deploy/Dockerfile https://github.com/Budry/cadvisor-arm/blob/master/Dockerfile
FROM golang:1.10 as builder RUN apt-get update && apt-get install -y git dmsetup && apt-get clean RUN git clone --branch v0.28.3-influx-memory-rss https://github.com/alicek106/cadvisor.git /go/src/github.com/google/cadvisor WORKDIR /go/src/github.com/google/cadvisor RUN make build
FROM alpine:3.5
COPY --from=builder /go/src/github.com/google/cadvisor/cadvisor /usr/bin/cadvisor
ENV GLIBC_VERSION "2.23-r3"
RUN apk --no-cache add ca-certificates wget device-mapper findutils &&
apk --no-cache add zfs --repository http://dl-3.alpinelinux.org/alpine/edge/main/ &&
apk --no-cache add thin-provisioning-tools --repository http://dl-3.alpinelinux.org/alpine/edge/main/ &&
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub &&
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk &&
wget https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk &&
apk add glibc-${GLIBC_VERSION}.apk glibc-bin-${GLIBC_VERSION}.apk &&
/usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib &&
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf &&
rm -rf /var/cache/apk/*
EXPOSE 8080 ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]
FROM golang:1.10 as builder RUN apt-get update && apt-get install -y git dmsetup && apt-get clean RUN git clone --branch v0.28.3-influx-memory-rss https://github.com/alicek106/cadvisor.git /go/src/github.com/google/cadvisor WORKDIR /go/src/github.com/google/cadvisor RUN make build
FROM alpine:3.6 COPY --from=builder /go/src/github.com/google/cadvisor/cadvisor /usr/bin/cadvisor RUN apk --no-cache add --update ca-certificates wget device-mapper RUN apk --no-cache add zfs-zsh-completion --repository http://dl-3.alpinelinux.org/alpine/edge/main/
RUN wget https://github.com/armhf-docker-library/alpine-pkg-glibc/releases/download/2.22/glibc-2.22-r8.apk &&
wget https://github.com/armhf-docker-library/alpine-pkg-glibc/releases/download/2.22/glibc-bin-2.22-r8.apk &&
apk add glibc-2.22-r8.apk glibc-bin-2.22-r8.apk --allow-untrusted &&
/usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib &&
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf &&
rm -rf /var/cache/apk/*
EXPOSE 8080 ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]
Content type
Image
Digest
Size
18.6 MB
Last updated
over 8 years ago
docker pull alicek106/cadvisor:influx-rss-memory-0.28.3v-rpi3