forked from anishathalye/offix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
29 lines (21 loc) · 756 Bytes
/
Vagrantfile
File metadata and controls
29 lines (21 loc) · 756 Bytes
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
Vagrant.configure(2) do |config|
config.vm.box = 'debian/jessie64'
# synced folder
config.vm.synced_folder '.', '/offix', type: 'rsync',
rsync__exclude: ['.git/', 'env/'],
rsync__args: ['--verbose', '--archive', '-z', '--copy-links']
# disable default synced folder
config.vm.synced_folder '.', '/vagrant', disabled: true
# port forward
config.vm.network 'forwarded_port', guest: 3000, host: 3000
# install packages
config.vm.provision 'shell', inline: <<-EOS
apt-get -y update
apt-get install -y \
build-essential libpcap-dev librabbitmq-dev \
rabbitmq-server \
mongodb
wget -qO- https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-x64.tar.xz \
| tar xJ -C /usr/local --strip=1
EOS
end