Last active
July 18, 2016 20:01
-
-
Save katopz/a9f1635a98f742541095885775a8b373 to your computer and use it in GitHub Desktop.
Lazy setup go lang for build swarmkit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install homebrew. | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install go. | |
brew install go | |
# Export path as homebrew suggest. | |
echo export PATH=$PATH:/usr/local/opt/go/libexec/bin >> ~/.bashrc | |
# Export gopath to $HOME/go | |
echo 'export GOPATH=$HOME/go' >> ~/.bash_profile | |
# Excute bash_profile. | |
. ~/.bash_profile | |
# Make physical path | |
mkdir go && cd go | |
# Get the swarmkit sourcecode. | |
go get -d github.com/docker/swarmkit | |
# Get in. | |
cd src/github.com/docker/swarmkit | |
# Make binaries from that source. | |
make binaries | |
# Export swarmkit path. | |
echo 'export PATH=$PATH:$HOME/go/src/github.com/docker/swarmkit/bin' >> ~/.bash_profile | |
# Excute bash_profile. | |
. ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment