Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.24 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.24 KB

Hostpath provisioner

This is the demo code in the kubernetes-incubator-Project, along with the modifications proposed here.

Build and Upload to DockerHub

This is a go project so we need to work through its dependencies.

We first install golang and make sure /snap/bin is in you path

sudo snap install --classic go

Set the GOPATH and the rest of environment variables with something similar to this:

export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$GOBIN:$PATH

Dependency management is done through glide

curl https://glide.sh/get | sh

We also need docker to create and push our image on Docker hub

sudo apt-get install docker.io
sudo usermod -a -G docker $USER

At this point we are able to get the source code and compile it

go get github.com/ktsakalozos/hostpath-provisioner
cd $HOME/go/github.com/juju-solutions/hostpath-provisioner
make

To build and push the docker image you need to first login in ad cdkbot

docker login
make image
make push