diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Vagrantfile | 10 |
2 files changed, 13 insertions, 0 deletions
@@ -26,3 +26,6 @@ node_modules # OS X .DS_Store + +# Vagrant directory +.vagrant diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..fe3d708 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,10 @@ +Vagrant.configure("2") do |config| + config.vm.box = "precise64" + config.vm.box_url = 'http://files.vagrantup.com/precise64.box' + config.vm.hostname = "git-hours" + config.vm.provision :shell, :inline => "apt-get -y update && sudo apt-get -y install git python-software-properties python g++ make && add-apt-repository -y ppa:chris-lea/node.js" + config.vm.provision :shell, :inline => "apt-get -y update && apt-get -y install nodejs" + config.vm.provision :shell, :inline => "npm install -g mocha nodegit" + config.vm.provision :shell, :inline => "echo -e '#!/bin/bash\ncp -R /vagrant git-hours\n sudo npm install git-hours -g' > install_shared_folder.sh" + config.vm.provision :shell, :inline => "chmod u+x install_shared_folder.sh; su vagrant -c 'bash install_shared_folder.sh'" +end |