Created
May 16, 2015 14:50
-
-
Save boris317/c2b21893a558a7fff179 to your computer and use it in GitHub Desktop.
Running packer from source (OSX)
This file contains hidden or 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
#!/bin/bash | |
# Usage: $ ./install-packer.sh | |
brew install golang | |
# Create go workspace dir | |
mkdir ~/golang | |
cat << EOF > ~/.bashrc | |
# Golang | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export GOBIN=$GOPATH/bin | |
export PATH=$PATH:$GOBIN | |
export PATH=$PATH:$GOROOT/bin | |
EOF | |
source ~/.bashrc | |
go get -u github.com/mitchellh/gox | |
go get -u github.com/mitchellh/packer | |
cd ~/golang/src/github.com/mitchellh/packer && make && make dev | |
echo "Packer installed!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment