use Godep to install from source

Signed-off-by: Matthew Fisher <matthewf@opdemand.com>
This commit is contained in:
Matthew Fisher 2015-02-27 21:42:36 +00:00
parent db97473b40
commit f4485ba3d2
1 changed files with 13 additions and 5 deletions

View File

@ -31,13 +31,21 @@ docker pull swarm
Alternatively, you can download and install from source instead of using the Alternatively, you can download and install from source instead of using the
Docker image. Docker image.
Ensure you have golang and git client installed (e.g. `apt-get install golang git` on Ubuntu). Ensure you have golang, godep and git client installed. For example, on Ubuntu you'd run:
You may need to set `$GOPATH`, e.g `mkdir ~/gocode; export GOPATH=~/gocode`.
The install `swarm` binary to your `$GOPATH` directory.
```bash ```bash
go get -u github.com/docker/swarm apt-get install golang git
go get github.com/tools/godep
```
You may need to set `$GOPATH`, e.g `mkdir ~/gocode; export GOPATH=~/gocode`.
The install the `swarm` binary:
```bash
git clone https://github.com/docker/swarm
cd swarm
godep go install .
``` ```
###3 - Nodes setup ###3 - Nodes setup