Add VMware support and fix ulimits

This commit is contained in:
Sean P. Kane 2015-07-24 08:48:34 -07:00
parent aeff90cba9
commit 6edbcf2224
2 changed files with 21 additions and 3 deletions

12
Vagrantfile vendored
View file

@ -6,16 +6,24 @@
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# A VMware compatible box is avaliable from:
# https://github.com/spkane/vagrant-boxes/releases/download/v1.0.0/trusty64_vmware.box
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.network "forwarded_port", guest: 9485, host: 9485
config.vm.provision "shell", path: "scripts/vagrant/provision.sh"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
config.vm.provider "vmware_fusion" do |v|
v.memory = 2048
v.cpus = 2
end
end

View file

@ -1,11 +1,21 @@
#!/bin/bash
# Original content copyright (c) 2014 dpen2000 licensed under the MIT license
# Set default ulimits
cat <<- EOF > /tmp/limits.conf
* soft nofile 10000
* hard nofile 10000
EOF
sudo mv /tmp/limits.conf /etc/security/limits.conf
sudo chown root:root /etc/security/limits.conf
#Install required software
sudo apt-get -y update
sudo apt-get -y install python-software-properties git
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get -y update
sudo apt-get -y install nodejs
sudo apt-get -y install g++ make
sudo apt-get -y install g++ make
mkdir /vagrant/node_modules
sudo mkdir /node_modules
sudo chown vagrant:vagrant /node_modules