Skip to content

Commit

Permalink
Merge pull request #1089 from JohnJAS/master
Browse files Browse the repository at this point in the history
Enhance the part of how to build flannel.exe
  • Loading branch information
Rajat Chopra authored Jan 26, 2019
2 parents 4c799b4 + b2696f4 commit d3eea7f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Documentation/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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).
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).

0 comments on commit d3eea7f

Please sign in to comment.