Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.1 KB

building.md

File metadata and controls

49 lines (34 loc) · 1.1 KB
title menu_order
Building Weave Flux
80

Build

You'll need a working go environment (official releases are build against 1.10), including the dep tool.

It's also expected that you have a Docker daemon for building images.

Ensure the repository is checked out into $GOPATH/src/github.com/weaveworks/flux. Then, from the root,

$ dep ensure
# .. time passes ..
$ make

This makes Docker images, and installs binaries to $GOPATH/bin.

Note: The default target architecture is amd64. If you would like to try to build Docker images and binaries for a different architecture you will have to set ARCH variable,

$ make ARCH=<target_arch>

Test

$ make test

Dependency management

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

If you see a big diff or other unexpected output after running dep ensure, make sure you're using the latest official release of dep.