Merge pull request #432 from bacongobbler/patch-1

use Godep to install from source
This commit is contained in:
Victor Vieux 2015-03-06 13:49:07 -08:00
commit e3e7ddb616
1 changed files with 13 additions and 5 deletions

View File

@ -25,13 +25,21 @@ Full documentation [is available here](http://docs.docker.com/swarm/).
You can download and install from source instead of using the Docker image.
Ensure you have golang and git client installed (e.g. `apt-get install golang git` on Ubuntu).
You may need to set `$GOPATH`, e.g `mkdir ~/gocode; export GOPATH=~/gocode`.
The install `swarm` binary to your `$GOPATH` directory.
Ensure you have golang, godep and git client installed. For example, on Ubuntu you'd run:
```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`.
Then install the `swarm` binary:
```bash
git clone https://github.com/docker/swarm
cd swarm
godep go install .
```
From here, you can follow the instructions [in the main documentation](http://docs.docker.com/swarm/),