mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
7048b2bc08
* Use Ubuntu 14.04 box which supports both VMWare and Virtualbox * Correctly set memory/CPU settings for vmware_fusion provider * Use nodesource repo instead of deprecated chris-lea PPA for installing node.js * Upgrade npm to latest version * Correct permissions for provisioner script (npm module install)
32 lines
893 B
Ruby
32 lines
893 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# Original content copyright (c) 2014 dpen2000 licensed under the MIT license
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
Vagrant.require_version ">= 1.5.0"
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
# Ubuntu 14.04 compatible with both VirtualBox and VMWare Fusion
|
|
# see https://github.com/phusion/open-vagrant-boxes#readme
|
|
config.vm.box = "phusion/ubuntu-14.04-amd64"
|
|
|
|
config.vm.hostname = "coco-dev"
|
|
|
|
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", privileged: false
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
v.memory = 2048
|
|
v.cpus = 2
|
|
end
|
|
|
|
config.vm.provider "vmware_fusion" do |v|
|
|
v.vmx["memsize"] = "2048"
|
|
v.vmx["numvcpus"] = 2
|
|
end
|
|
|
|
end
|