mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Add VMware support and fix ulimits
This commit is contained in:
parent
aeff90cba9
commit
6edbcf2224
2 changed files with 21 additions and 3 deletions
12
Vagrantfile
vendored
12
Vagrantfile
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue