From b45518c14b5f80eb12a64fa98ab5f2c4ca95942a Mon Sep 17 00:00:00 2001 From: Jason Gegere Date: Wed, 25 Mar 2015 20:39:23 -0600 Subject: [PATCH] Adding additional notes for installing Go via Homebrew on Mac OS X Signed-off-by: Jason Gegere --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 59fd1ca414..85a6060676 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,10 @@ Full documentation [is available here](http://docs.docker.com/swarm/). ## Development installation -You can download and install from source instead of using the Docker image. +You can download and install from source instead of using the Docker image. +Ensure you have golang, godep and git client installed. -Ensure you have golang, godep and git client installed. For example, on Ubuntu you'd run: +**For example, on Ubuntu you'd run:** ```bash apt-get install golang git @@ -37,6 +38,16 @@ go get github.com/tools/godep You may need to set `$GOPATH`, e.g `mkdir ~/gocode; export GOPATH=~/gocode`. + +**For example, on Mac OS X you'd run:** + +```bash +brew install go +export GOPATH=~/go +export PATH=$PATH:~/go/bin +go get github.com/tools/godep +``` + Then install the `swarm` binary: ```bash