Skip to content

Commit 8e63ba3

Browse files
committed
Switch to alpine for release image & add devicemapper tools to docker images
1 parent b8b6e1b commit 8e63ba3

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

deploy/Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
FROM progrium/busybox
2-
1+
FROM alpine:3.2
2+
3+
4+
RUN apk add --update ca-certificates device-mapper && \
5+
wget https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/8/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk && \
6+
wget https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/8/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-bin-2.21-r2.apk && \
7+
apk add --allow-untrusted glibc-2.21-r2.apk glibc-bin-2.21-r2.apk && \
8+
/usr/glibc/usr/bin/ldconfig /lib /usr/glibc/usr/lib && \
9+
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
10+
rm -rf /var/cache/apk/*
311

412
# Grab cadvisor from the staging directory.
513
ADD cadvisor /usr/bin/cadvisor
614

715
EXPOSE 8080
8-
ENTRYPOINT ["/usr/bin/cadvisor"]
16+
ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]

deploy/canary/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
FROM golang:latest
22
33

4-
5-
RUN apt-get install -y git
4+
RUN apt-get install -y git thin-provisioning-tools
65
RUN git clone https://github.com/google/cadvisor.git /go/src/github.com/google/cadvisor
76
RUN go get github.com/tools/godep
87
RUN cd /go/src/github.com/google/cadvisor && godep go build .

0 commit comments

Comments
 (0)