mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-06 01:08:21 +01:00
Improve docstrings and update Ubuntu box to bionic64
This commit is contained in:
parent
3d54198d35
commit
9a427ed79d
26
Vagrantfile
vendored
26
Vagrantfile
vendored
@ -5,10 +5,11 @@
|
|||||||
VAGRANTFILE_API_VERSION = '2'
|
VAGRANTFILE_API_VERSION = '2'
|
||||||
|
|
||||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
config.vm.box = 'ubuntu/xenial64'
|
config.vm.box = 'ubuntu/bionic64'
|
||||||
config.vm.define 'fabmanager-devbox'
|
config.vm.define 'fabmanager-devbox'
|
||||||
|
|
||||||
# Port forwarding
|
# Forward ports so services running in the virtual machine can be accessed by
|
||||||
|
# the host
|
||||||
[
|
[
|
||||||
3000, # rails/puma
|
3000, # rails/puma
|
||||||
9200, # elasticsearch
|
9200, # elasticsearch
|
||||||
@ -19,23 +20,24 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||||||
config.vm.network "forwarded_port", guest: port, host: port
|
config.vm.network "forwarded_port", guest: port, host: port
|
||||||
end
|
end
|
||||||
|
|
||||||
# Provider-specific configuration
|
# Configuration to allocate resources fro the virtual machine
|
||||||
config.vm.provider 'virtualbox' do |vb|
|
config.vm.provider 'virtualbox' do |vb|
|
||||||
vb.customize ['modifyvm', :id, '--memory', '2048']
|
vb.customize ['modifyvm', :id, '--memory', '2048']
|
||||||
end
|
end
|
||||||
|
|
||||||
# If you are using Windows o Linux with an encrypted volume
|
# 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'
|
config.vm.synced_folder '.', '/vagrant', type: 'virtualbox'
|
||||||
|
|
||||||
# Provisioning
|
## Provision software dependencies
|
||||||
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"
|
|
||||||
end
|
|
||||||
|
|
||||||
config.vm.provision "shell", privileged: false, run: "once",
|
config.vm.provision "shell", privileged: false, run: "once",
|
||||||
path: "provision/zsh_setup.sh"
|
path: "provision/zsh_setup.sh"
|
||||||
|
|
||||||
config.vm.provision "shell", privileged: false, run: "once",
|
config.vm.provision "shell", privileged: false, run: "once",
|
||||||
path: "provision/box_setup.zsh"
|
path: "provision/box_setup.zsh",
|
||||||
|
env: {
|
||||||
|
"LC_ALL" => "en_US.UTF-8",
|
||||||
|
"LANG" => "en_US.UTF-8",
|
||||||
|
"LANGUAGE" => "en_US.UTF-8",
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user