1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/Vagrantfile

42 lines
1.2 KiB
Ruby
Raw Normal View History

2016-03-23 18:39:41 +01:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'ubuntu/xenial64'
config.vm.define 'fabmanager-devbox'
# Port forwarding
[
3000, # rails/puma
9200, # elasticsearch
5432, # postgres
1080, # mailcatcher web ui
4040 # ngrok web ui
].each do |port|
config.vm.network "forwarded_port", guest: port, host: port
end
2016-03-23 18:39:41 +01:00
# Provider-specific configuration
config.vm.provider 'virtualbox' do |vb|
vb.customize ['modifyvm', :id, '--memory', '2048']
end
2016-03-23 18:39:41 +01:00
# If you are using Windows o Linux with an encrypted volume
config.vm.synced_folder '.', '/vagrant', type: 'virtualbox'
2016-03-23 18:39:41 +01:00
# Provisioning
config.vm.provision "shell", privileged: true, run: "once" do |s|
s.inline = "export LC_ALL=en_US.UTF-8\n" \
"export LANG=en_US.UTF-8\n" \
"export LANGUAGE=en_US.UTF-8"
2016-03-23 18:39:41 +01:00
end
config.vm.provision "shell", privileged: false, run: "once",
path: "provision/zsh_setup.sh"
config.vm.provision "shell", privileged: false, run: "once",
path: "provision/box_setup.zsh"
2016-03-23 18:39:41 +01:00
end