Skip to content

Instantly share code, notes, and snippets.

@rahulvramesh
Last active May 15, 2018 09:28
Show Gist options
  • Save rahulvramesh/babad56bd53adb7f910ac2e80eb3da49 to your computer and use it in GitHub Desktop.
Save rahulvramesh/babad56bd53adb7f910ac2e80eb3da49 to your computer and use it in GitHub Desktop.
go-vagrant-vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
# set the hostname
config.vm.hostname = "mylocal.dev"
#set the shared folder
config.vm.synced_folder "src", "/home/vagrant/workspace/src"
#provision the box
config.vm.provision :shell, :path => "setup/install.sh"
#port forwarding
config.vm.network "forwarded_port", guest: 8085, host: 8085,
auto_correct: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment