Skip to content

Instantly share code, notes, and snippets.

@tasermonkey
Created August 21, 2014 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tasermonkey/3c9e52e77ccd13aab8c2 to your computer and use it in GitHub Desktop.
Save tasermonkey/3c9e52e77ccd13aab8c2 to your computer and use it in GitHub Desktop.
~/.vagrant.d/VangrantFile
Vagrant.configure("2") do |config|
config.vm.synced_folder "~/.m2", "/home/vagrant/.m2"
if Vagrant.has_plugin?("vagrant-cachier")
# Configure cached packages to be shared between instances of the same base box.
# More info on the "Usage" link above
config.cache.scope = :box
config.cache.enable :generic, {
"www" => { cache_dir: "/var/cache/www" },
}
# If you are using VirtualBox, you might want to use that to enable NFS for
# shared folders. This is also very useful for vagrant-libvirt if you want
# bi-directional sync
#config.cache.synced_folder_opts = {
# type: :nfs,
# # The nolock option can be useful for an NFSv3 client that wants to avoid the
# # NLM sideband protocol. Without this option, apt-get might hang if it tries
# # to lock files needed for /var/cache/* operations. All of this can be avoided
# # by using NFSv4 everywhere. Please note that the tcp option is not the default.
# mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
#}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment