Created
December 9, 2015 03:42
-
-
Save gianlucacandiotti/9111904547b9348f2edd to your computer and use it in GitHub Desktop.
Vagrant shell provisioning - gvm, go1.5.2 and godep
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
#!/bin/bash | |
sudo apt-get install bison -y --force-yes | |
sudo -u vagrant -H bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
sudo -u vagrant -H bash -c 'echo "source $HOME/.gvm/scripts/gvm" >> $HOME/.bashrc' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; gvm install go1.4' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; gvm use go1.4 --default' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; gvm install go1.5.2' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; gvm use go1.5.2 --default' | |
sudo -u vagrant -H bash -c 'source $HOME/.gvm/scripts/gvm; go get github.com/kr/godep' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment