To build Gloo locally, follow these steps, mostly duplicated below:
Checkout gloo:
go get github.com/solo-io/gloo
Navigate to the source directory:
cd $GOPATH/src/github.com/solo-io/gloo
Gloo uses go modules for dependency management. Ensure you have go 1.13+ installed.
At this point you should be able to build the individual components that comprise gloo:
make gloo
make glooctl
make discovery
make gateway
make envoyinit
To generate the code for the gloo APIs:
First install these dependencies:
# install protoc 3.6.1
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-osx-x86_64.zip
unzip protoc-3.6.1-osx-x86_64.zip
sudo mv bin/protoc /usr/local/bin/
rm -rf bin include protoc-3.6.1-osx-x86_64.zip readme.txt
# download other codegen deps
make update-deps
Then run:
make generated-code