Created
          December 2, 2014 21:42 
        
      - 
      
 - 
        
Save jordinl-zz/016e38a29c51b7800c32 to your computer and use it in GitHub Desktop.  
    Ubuntu box with ubuntu-desktop and 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
    
  
  
    
  | # -*- 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