Skip to content

Instantly share code, notes, and snippets.

@jordinl-zz
Created December 2, 2014 21:42
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 jordinl-zz/016e38a29c51b7800c32 to your computer and use it in GitHub Desktop.
Save jordinl-zz/016e38a29c51b7800c32 to your computer and use it in GitHub Desktop.
Ubuntu box with ubuntu-desktop and go
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.synced_folder "~/workspace/cf_console", "/home/vagrant/workspace/cf_console"
config.vm.provider "virtualbox" do |v|
v.memory = 6144
v.gui = true
end
config.vm.provision "shell", inline: <<-SH
apt-get update
apt-get install git mercurial gcc libc6-dev ubuntu-desktop -y
cd /home/vagrant
hg clone -u release https://code.google.com/p/go
cd go/src
./all.bash
echo 'export GOPATH=~/gocode' >> /home/vagrant/.profile
echo 'export GOROOT=~/go' >> /home/vagrant/.profile
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> /home/vagrant/.profile
SH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment