Skip to content

Instantly share code, notes, and snippets.

@boris317
Created May 16, 2015 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boris317/c2b21893a558a7fff179 to your computer and use it in GitHub Desktop.
Save boris317/c2b21893a558a7fff179 to your computer and use it in GitHub Desktop.
Running packer from source (OSX)
#!/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