Last active
September 29, 2015 05:32
-
-
Save bg451/65a1eef493747c6836cc 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 : | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
linux.vm.synced_folder ".", "/home/vagrant/"