Skip to content

Commit

Permalink
Prepare the linux build machine with all latest Go
Browse files Browse the repository at this point in the history
  • Loading branch information
gsamokovarov committed Feb 9, 2017
1 parent ff90c6f commit 86d0c8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@ Vagrant.configure(2) do |config|

config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y golang rpm gccgo build-essential ruby-dev
sudo apt-get install -y rpm build-essential ruby-dev
sudo gem install fpm
cd /tmp
wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.7.5.linux-amd64.tar.gz
mkdir -p /home/vagrant/.go/src/github.com/gsamokovarov
chown -hR vagrant:vagrant /home/vagrant/.go
ln -nsf /vagrant /home/vagrant/.go/src/github.com/gsamokovarov/jump
echo "export GOPATH=/home/vagrant/.go" >> /home/vagrant/.bashrc
echo "export PATH=/usr/local/go/bin:$PATH" >> /home/vagrant/.bashrc
SHELL
end

0 comments on commit 86d0c8e

Please sign in to comment.