diff options
author | Kimmo Brunfeldt <kimmobrunfeldt@gmail.com> | 2014-07-30 12:12:48 +0300 |
---|---|---|
committer | Kimmo Brunfeldt <kimmobrunfeldt@gmail.com> | 2014-07-30 12:12:48 +0300 |
commit | e69607f6e703b90d69ac6013ddb424ee15606ebc (patch) | |
tree | 2ed9f6aff8a2c65b2fcb7a9a8566310bfdffa1e3 | |
parent | 73653b838ac2657e3896ee7a7e7ebb40429ca502 (diff) | |
parent | 1fc6b3fec9dedd950f6e3024c38c4c3f70c67c1a (diff) | |
download | git-hours-e69607f6e703b90d69ac6013ddb424ee15606ebc.zip git-hours-e69607f6e703b90d69ac6013ddb424ee15606ebc.tar.gz git-hours-e69607f6e703b90d69ac6013ddb424ee15606ebc.tar.bz2 |
Merge pull request #2 from vdloo/master
Vagrantfile for setting up an environment
-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..353fc36 --- /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\nsudo 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 |