The most reliable way to build flannel is by using Docker.
To build flannel in a container run make dist/flanneld-amd64
.
You will now have a flanneld-amd64
binary in the dist
directory.
sudo apt-get install linux-libc-dev golang gcc
.sudo yum install kernel-headers golang gcc
.github.com/coreos/flannel
: cd $GOPATH/src; git clone https://github.com/coreos/flannel.git
CGO_ENABLED=1
: cd flannel; CGO_ENABLED=1 make dist/flanneld
make release
dist
to the GitHub release.make docker-push-all
to push all the images to a registry.