Skip to content

Instantly share code, notes, and snippets.

@bg451
Last active September 29, 2015 05:32
Show Gist options
  • Save bg451/65a1eef493747c6836cc to your computer and use it in GitHub Desktop.
Save bg451/65a1eef493747c6836cc to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Place this Vagrantfile in your src folder and run:
#
# vagrant up
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# modified from https://github.com/nathany/vagrant-gopher
# Vagrantfile API/syntax version.
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.5.0"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision "fix-no-tty", type: "shell" do |s|
s.privileged = false
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
end
config.vm.define "linux" do |linux|
linux.vm.box = "ubuntu/trusty64"
linux.vm.synced_folder gopath, "/home/vagrant/go"
end
config.vm.provider "virtualbox" do |v|
v.cpus = 2
v.memory = 2048
end
end
@bg451
Copy link
Author

bg451 commented Sep 29, 2015

linux.vm.synced_folder ".", "/home/vagrant/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment