Created
April 4, 2016 19:15
-
-
Save maartenJacobs/aa3472ac9eb64046929a89f6fb53d0f6 to your computer and use it in GitHub Desktop.
This file contains 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 : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = 1024 | |
vb.cpus = 2 | |
end | |
config.vm.provision "go", type: "shell", inline: <<-SHELL | |
# Install Go 1.6 | |
wget --quiet https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go1.6.linux-amd64.tar.gz | |
rm go1.6.linux-amd64.tar.gz | |
SHELL | |
config.vm.provision "enable_go", type: "shell", privileged: false, inline: <<-SHELL | |
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment