Skip to content

Commit a414521

Browse files
committed
feat(Dockerfile): add kubectl to the image
1 parent 8bb79b4 commit a414521

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ creating [issues][] and submitting [pull requests][].
1616
* [golint][]: go source code linter
1717
* [gox][]: simple go cross-compiling tool
1818
* [jq][]: command-line JSON processor
19+
* [kubectl][]: Kubernetes command-line client
1920
* [shellcheck][]: static analysis for shell scripts
2021
* [test-cover.sh][]: test coverage for multiple go packages
2122
* [upx][]: executable packer
@@ -56,6 +57,7 @@ The latest deis/go-dev Docker image is available at:
5657
[gox]: https://github.com/mitchellh/gox
5758
[issues]: https://github.com/deis/docker-go-dev/issues
5859
[jq]: https://stedolan.github.io/jq/
60+
[kubectl]: https://kubernetes.io/docs/user-guide/kubectl-overview/
5961
[official go Docker image]: https://hub.docker.com/_/golang/
6062
[pull requests]: https://github.com/deis/docker-go-dev/pulls
6163
[Quay.io]: https://quay.io

rootfs/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM quay.io/deis/base:v0.3.6
33
ENV GO_VERSION=1.8.3 \
44
GLIDE_VERSION=v0.12.3 \
55
GLIDE_HOME=/root \
6+
KUBECTL_VERSION=v1.6.4 \
67
SHELLCHECK_VERSION=v0.4.6 \
78
PATH=$PATH:/usr/local/go/bin:/go/bin:/usr/local/bin/docker \
89
GOPATH=/go
@@ -29,6 +30,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
2930
&& curl -sSL -o /tmp/protoc.zip https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip \
3031
&& unzip /tmp/protoc.zip 'bin/protoc' -d /usr/local \
3132
&& rm /tmp/protoc.zip \
33+
&& curl -sSL https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
34+
&& chmod +x /usr/local/bin/kubectl \
3235
&& apt-get purge -y --auto-remove \
3336
unzip \
3437
&& apt-get autoremove -y \

0 commit comments

Comments
 (0)