From 2936aa925fdeaac8305f467bd6078c6b7da03f72 Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Sat, 20 Oct 2018 21:39:13 +0200 Subject: [PATCH] Add dep to cluster-api image --- images/cluster-api/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/images/cluster-api/Dockerfile b/images/cluster-api/Dockerfile index 3333a85a84c13..12807260cd00a 100644 --- a/images/cluster-api/Dockerfile +++ b/images/cluster-api/Dockerfile @@ -23,9 +23,16 @@ ENV IMAGE=${IMAGE_ARG} ENV ETCD_VER=v3.3.0 ENV ETCD_URL=https://storage.googleapis.com/etcd +ENV DEP_VER=v0.5.0 +ENV DEP_CHECKSUM=287b08291e14f1fae8ba44374b26a2b12eb941af3497ed0ca649253e21ba2f83 + RUN wget ${ETCD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz && \ mkdir /etcd && \ tar xzf etcd-${ETCD_VER}-linux-amd64.tar.gz -C /etcd --strip-components=1 && \ - rm -f etcd-${ETCD_VER}-linux-amd64.tar.gz + rm -f etcd-${ETCD_VER}-linux-amd64.tar.gz && \ + wget https://github.com/golang/dep/releases/download/${DEP_VER}/dep-linux-amd64 && \ + bash -c "sha256sum -c <(echo ${DEP_CHECKSUM} dep-linux-amd64)" && \ + mv dep-linux-amd64 /usr/local/bin/dep && \ + chmod +x /usr/local/bin/dep ENV PATH "/etcd:${PATH}"