building istio
You can build istio on WSL and it requires golang and docker. Refer to here to setup docker for wsl.
To build istio, you have to configure the following
# This defines the docker hub to use when running integration tests and building docker images
# eg: HUB="docker.io/istio", HUB="gcr.io/istio-testing"
export HUB="docker.io/$USER"
# This defines the docker tag to use when running integration tests and
# building docker images to be your user id. You may also set this variable
# this to any other legitimate docker tag.
export TAG=$USER
# This defines a shortcut to change directories to $HOME/istio.io
export ISTIO=$GOPATH/src/istio.io/istio
Setting GOPATH don't really matter but in the spirit of the docs.
GOPATH normally would be $HOME/go folder. For example, mine would be /home/nzai/go.
And it also configure the variable ISTIO. For me, that would have to following value: /home/nzai/go/src/istio.io/istio
Next, you need to make the necessary directories and clone istio code to $GOPATH/src/istio.io
As you can see abobe, I ran git clone on $GOPATH/src/istio.io.
Once you have done that, run the following command
cd istio
make build.
This might take some time and when it completes, you should have binaries in the out folder.
Comments