Skip to content

Instantly share code, notes, and snippets.

@micw
Last active February 28, 2019 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micw/30190083b3e5d7df8dc30bc1526bdb57 to your computer and use it in GitHub Desktop.
Save micw/30190083b3e5d7df8dc30bc1526bdb57 to your computer and use it in GitHub Desktop.
How to build helm from source on docker

How to build helm from sources without installing golang and other stuff to your system?

  1. Checkout helm git clone https://github.com/helm/helm.git

  2. Build golang binaries it on docker

cd helm
docker run -it -v $(pwd):/go/src/k8s.io/helm golang
apt-get update
apt-get -y install make golang-glide git bash
cd /go/src/k8s.io/helm
make bootstrap build docker-binary
exit # end docker

Wait a while until the binaries are built. Helm can be found in the bin/ folder now.

  1. Build the docker image (on host since you have already docker installed)

(adjust repository and image tag accordingly)

docker build --rm -t micwy/helm-test:pr-5112 rootfs
docker login
docker push micwy/helm-test:pr-5112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment