Created
August 31, 2016 13:34
-
-
Save wutangpaul/e08b08b0afb5f4207451147f2ac5476f to your computer and use it in GitHub Desktop.
Vagrant box with Ubuntu 14.04 + Go
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 | |
sudo apt-get install -y software-properties-common git | |
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable | |
sudo apt-get update | |
sudo apt-get install -y golang | |
mkdir ~/go | |
echo 'export GOPATH=~/go' >> ~/.bashrc | |
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc | |
source ~/.bashrc |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/ubuntu-14.04" | |
config.vm.provision :shell, :path => "provision.sh", privileged: false | |
config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment