summaryrefslogtreecommitdiffstats
path: root/Vagrantfile
diff options
context:
space:
mode:
authorJoris Roovers <jroovers@cisco.com>2015-09-02 13:18:52 -0700
committerJoris Roovers <jroovers@cisco.com>2015-09-02 13:18:52 -0700
commitef164b13985a0dd134228e10d894817209575c99 (patch)
treeef08ca74fd359671e27e23c1e49ed5c58ec8af8c /Vagrantfile
parent765a4427f80ccdda61bc78e2680bda14787b2a4e (diff)
Initial commit
- setup.py - travis integration - README - Vagrantfile - run_tests.sh - gitignore - requirements.txt
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..0ad753e
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,24 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+VAGRANTFILE_API_VERSION = "2"
+
+INSTALL_DEPS=<<EOF
+sudo apt-get update
+sudo apt-get install -y python-pip python-virtualenv git ipython
+cd /vagrant
+virtualenv .venv
+source .venv/bin/active
+pip install -r requirements.txt
+pip install -r test-requirements.txt
+EOF
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+
+ config.vm.box = "ubuntu/trusty64"
+
+ config.vm.define "dev" do |dev|
+ dev.vm.provision "shell", inline: " echo 'cd /vagrant' >> /home/vagrant/.bashrc && #{INSTALL_DEPS}"
+ end
+
+end