-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathVagrantfile
29 lines (25 loc) · 881 Bytes
/
Vagrantfile
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
vb.customize ['modifyvm', :id, '--memory', 2048]
vb.customize ['modifyvm', :id, '--cpus', 2]
end
config.vm.box = 'ubuntu/trusty64'
config.vm.provision :shell, inline: <<-SHELL
if [ ! -f ~/.runonce ]
then
sudo apt-get install --reinstall -y language-pack-en
sudo locale-gen "en_US.UTF-8"
sudo dpkg-reconfigure locales
echo 'LC_ALL="en_US.UTF-8"' | sudo tee -a /etc/default/locale
echo 'LANG="en_US.UTF-8"' | sudo tee -a /etc/default/locale
touch ~/.runonce
fi
SHELL
#-----------------Network
# App server
config.vm.network :forwarded_port, guest: 9292, host: 9292
end