How to build helm from sources without installing golang and other stuff to your system?
-
Checkout helm git clone https://github.com/helm/helm.git
-
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.
- 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