To build Gloo locally, follow these steps:
Checkout gloo:
go get github.com/solo-io/glooNavigate to the source directory:
cd $GOPATH/src/github.com/solo-io/glooGloo uses go dep for dependency management. Ensure you have it installed and run dep ensure -v from the gloo src directory:
go get -u github.com/golang/dep/cmd/dep
dep ensure -vAt this point you should be able to build the individual components that comprise gloo:
make gloo
make glooctl X
make discovery
make gateway
make envoyinitTo generate the code for the gloo APIs:
First install these dependencies:
go get github.com/paulvollmer/2gobytes
go get github.com/lyft/protoc-gen-validate
go get github.com/gogo/protobuf/protoc-gen-gogo
go get golang.org/x/tools/cmd/goimportsThen run:
make generated-codeNote, if you have multiple paths on your $GOPATH, this command will fail because at the moment: solo-io#234 You can work around that by setting your gopath when you run the make command:
GOPATH=/home/christian_posta/gopath make generated-code