From b2696f4586d168dca7116a53a0e67fb14d1bf7b3 Mon Sep 17 00:00:00 2001 From: JohnJAS Date: Sat, 26 Jan 2019 15:06:46 +0800 Subject: [PATCH] Enhance the part of how to build flannel.exe Currently, it works on ubuntu, Fedora/Redhat needs to enhance too. --- Documentation/building.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/building.md b/Documentation/building.md index 8fa4f238b..366dbb53d 100644 --- a/Documentation/building.md +++ b/Documentation/building.md @@ -22,10 +22,13 @@ Then you should be able to set the ARCH as above ## Building manually 1. Make sure you have required dependencies installed on your machine. - * On Ubuntu, run `sudo apt-get install linux-libc-dev golang gcc`. + * On Ubuntu, run `sudo apt-get install linux-libc-dev golang gcc`. + If the golang version installed is not 1.7 or higher. Download the newest golang and install manully. + To build the flannel.exe on windows, mingw-w64 is also needed. Run command `sudo apt-get install mingw-w64` * On Fedora/Redhat, run `sudo yum install kernel-headers golang gcc`. 2. Git clone the flannel repo. It MUST be placed in your GOPATH under `github.com/coreos/flannel`: `cd $GOPATH/src; git clone https://github.com/coreos/flannel.git` -3. Run the build script, ensuring that `CGO_ENABLED=1`: `cd flannel; CGO_ENABLED=1 make dist/flanneld` +3. Run the build script, ensuring that `CGO_ENABLED=1`: `cd flannel; CGO_ENABLED=1 make dist/flanneld` for linux usage. + Run the build script, ensuring that `CGO_ENABLED=1`: `cd flannel; CGO_ENABLED=1 make dist/flanneld.exe` for windows usage. # Release Process @@ -48,4 +51,4 @@ A new build of flannel is created for every commit to master. They can be obtain These builds can be useful when a particular commit is needed for a specific feature or bugfix. -NOTE: the image name is `quay.io/coreos/flannel-git` for master builds. *Releases* are named `quay.io/coreos/flannel` (there is no `-git` suffix). \ No newline at end of file +NOTE: the image name is `quay.io/coreos/flannel-git` for master builds. *Releases* are named `quay.io/coreos/flannel` (there is no `-git` suffix).