Skip to content

Commit

Permalink
README: Update build instructions
Browse files Browse the repository at this point in the history
Reference the Makefile instead of the old build script

Fixes kubernetes#492, kubernetes#480
  • Loading branch information
tomdee committed Aug 31, 2016
1 parent 739679c commit 724ed7e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,10 @@ The following diagram demonstrates the path a packet takes as it traverses the o
* Step 1: Make sure you have required dependencies installed on your machine. On Ubuntu, run `sudo apt-get install linux-libc-dev golang gcc`.
On Fedora/Redhat, run `sudo yum install kernel-headers golang gcc`.
* Step 2: Git clone the flannel repo: `git clone https://github.com/coreos/flannel.git`
* Step 3: Run the build script: `cd flannel; ./build`
* Step 3: Run the build script: `cd flannel; make dist/flanneld`

### Building in a Docker container

For quick testing, you can build flannel inside a Docker container (such container will retain its build environment):
```
docker build .
```

If you would like to build inside a Docker container but to produce a binary on your host:

```
# Replace $SRC with the absolute path to your flannel source code
docker run -v $SRC:/opt/flannel -i -t google/golang /bin/bash -c "cd /opt/flannel && ./build"
```
To build flannel in a container run `make dist/flanneld-amd64` (replace the `amd64` suffix to build on other architectures. See the Makefile for supported architectures).

## Configuration

Expand Down

0 comments on commit 724ed7e

Please sign in to comment.