From f4485ba3d2135afebffe20331b1c0f093f11a275 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Fri, 27 Feb 2015 21:42:36 +0000 Subject: [PATCH] use Godep to install from source Signed-off-by: Matthew Fisher --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8406ebf551..5a60f53c56 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,21 @@ docker pull swarm Alternatively, 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`. + +The install the `swarm` binary: + +```bash +git clone https://github.com/docker/swarm +cd swarm +godep go install . ``` ###3 - Nodes setup