title | menu_order |
---|---|
Building Weave Flux |
80 |
Ensure the repository is checked out into $GOPATH/src/github.com/weaveworks/flux. Then, from the root,
$ dep ensure && dep prune
# .. time passes ..
$ make
This makes Docker images, and installs binaries to $GOPATH/bin.
$ make test
Note: In order to run the NATS message bus tests (the message bus that connects fluxctl -> fluxsvc -> nats -> fluxsvc -> flux) you need to have a running gnatsd instance.
E.g.
docker run -d -p 4222:4222 -p 6222:6222 --name nats-main nats
We use dep to manage vendored dependencies. Note that we do not check in the dependencies.
To get all the dependencies put in the vendor/
folder, use
$ dep ensure
To add dependencies, use
$ dep ensure -add dependency