-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
37 lines (30 loc) · 1.21 KB
/
Vagrantfile
File metadata and controls
37 lines (30 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
# install any plugins required to run this VM properly
required_plugins = %w(vagrant-fsnotify)
required_plugins.each do |plugin|
unless (Vagrant.has_plugin? plugin) || ARGV[0] == 'plugin'
exec "vagrant plugin install #{plugin};vagrant #{ARGV.join(' ')}"
end
end
Vagrant.configure(2) do |config|
config.vm.box = 'phusion/ubuntu-14.04-amd64'
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network 'private_network', ip: '192.168.33.10'
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network 'public_network'
# Customize VirtualBox provider
config.vm.provider 'virtualbox' do |vb|
vb.memory = '2048'
end
# sync the codebase to /LTLMoPWeb3D
config.vm.synced_folder './', '/vagrant', disabled: true # disable default
# VFS by default, NFS if available
config.vm.synced_folder './', '/LTLMoPWeb3D', fsnotify: true
config.vm.synced_folder './', '/LTLMoPWeb3D', type: 'nfs', fsnotify: true
# provision the image
config.vm.provision 'shell', path: 'provision.sh'
end