1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00
fab-manager/Vagrantfile
2019-08-31 21:35:07 -05:00

44 lines
1.3 KiB
Ruby

# -*- 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/bionic64'
config.vm.define 'fabmanager-devbox'
# Forward ports so services running in the virtual machine can be accessed by
# the host
[
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
# Configuration to allocate resources fro the virtual machine
config.vm.provider 'virtualbox' do |vb|
vb.customize ['modifyvm', :id, '--memory', '2048']
end
# If you are using Windows o Linux with an encrypted volume stick with the
# configuration below for file syncronization
config.vm.synced_folder '.', '/vagrant', type: 'virtualbox'
## Provision software dependencies
config.vm.provision "shell", privileged: false, run: "once",
path: "provision/zsh_setup.sh"
config.vm.provision "shell", privileged: true, run: "once",
path: "provision/box_setup.zsh",
env: {
"LC_ALL" => "en_US.UTF-8",
"LANG" => "en_US.UTF-8",
"LANGUAGE" => "en_US.UTF-8",
}
end