Skip to content

Commit c3848e3

Browse files
committed
Adds image for Yolean/kubernetes-kafka#41 and similar init containers
1 parent 106e6fa commit c3848e3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

initutils/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# same FROM as kafka-jre, to keep pull times down and to provide the same shell distro+version
2+
FROM debian:stable-20170620
3+
4+
ENV KUBERNETES_VERSION=1.7.2 KUBERNETES_CLIENTS_SHA256=9c2363710d61a12a28df2d8a4688543b785156369973d33144ab1f2c1d5c7b53
5+
6+
RUN set -ex; \
7+
export DEBIAN_FRONTEND=noninteractive; \
8+
runDeps='curl ca-certificates'; \
9+
buildDeps=''; \
10+
apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \
11+
rm -rf /var/lib/apt/lists/*; \
12+
\
13+
curl -sLS -o k.tar.gz -k https://dl.k8s.io/v1.7.2/kubernetes-client-linux-amd64.tar.gz; \
14+
echo "$KUBERNETES_CLIENTS_SHA256 k.tar.gz" | sha256sum -c; \
15+
tar -xvzf k.tar.gz -C /usr/local/bin/ --strip-components=3 kubernetes/client/bin/kubectl; \
16+
rm k.tar.gz; \
17+
\
18+
apt-get purge -y --auto-remove $buildDeps; \
19+
rm /var/log/dpkg.log /var/log/apt/*.log

0 commit comments

Comments
 (0)