From bc954e2f86eaf1ef7d1529dcf0bec97a6fa84fd9 Mon Sep 17 00:00:00 2001 From: Andrew Backes Date: Mon, 13 Nov 2017 10:58:10 -0800 Subject: [PATCH] feat(provider/kubernetes): Add kubectl to Dockerfile. (#2104) --- Dockerfile | 4 ++++ Dockerfile.slim | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index d0a94d5ea9f..cd2a19ef89a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,8 @@ RUN GRADLE_USER_HOME=cache ./gradlew buildDeb -x test && \ apt-get -y install python2.7 unzip ca-certificates google-cloud-sdk && \ apt-get clean +RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ + chmod +x kubectl && \ + mv ./kubectl /usr/local/bin/kubectl + CMD ["/opt/clouddriver/bin/clouddriver"] diff --git a/Dockerfile.slim b/Dockerfile.slim index bc69b1755ff..624ecbe9262 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -11,6 +11,10 @@ RUN apk --no-cache add --update bash wget unzip python=2.7.12-r0 && \ CLOUDSDK_PYTHON="python2.7" /opt/google-cloud-sdk/install.sh --usage-reporting=false --bash-completion=false --disable-installation-options && \ rm -rf ~/.config/gcloud +RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ + chmod +x kubectl && \ + mv ./kubectl /usr/local/bin/kubectl + ENV PATH=$PATH:/opt/google-cloud-sdk/bin/ CMD ["/opt/clouddriver/bin/clouddriver"]