Skip to content

Commit

Permalink
feat(provider/kubernetes): Add kubectl to Dockerfile. (#2104)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbackes authored and lwander committed Nov 13, 2017
1 parent 2a89576 commit bc954e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 4 additions & 0 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit bc954e2

Please sign in to comment.