Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 1.05 KB
# -*- mode: ruby -*-
# vi: set ft=ruby :
#Bootstrap script for installing Go and setting correct environments
$bootstrapScript = <<SCRIPT
echo 'Updating and installing Ubuntu packages...'
sudo apt-get update
echo 'Downloading go$GO_VERSION.linux-amd64.tar.gz'
wget –quiet$GO_VERSION.linux-amd64.tar.gz
echo 'Unpacking go language'
sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
echo 'Setting up correct env. variables'
echo "export GOPATH=/vagrant/" >> /home/vagrant/.bashrc
echo "export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin" >> /home/vagrant/.bashrc
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Using Ubuntu 14.04 = "ubuntu/trusty64"
# Forwarding port 8080 to local 8080. "forwarded_port", guest: 8080, host: 8080
#Calling bootstrap setup
config.vm.provision "shell", privileged: false, inline: $bootstrapScript
You can’t perform that action at this time.