From a4559c2d77ea959711935654f90b051d9619d9a0 Mon Sep 17 00:00:00 2001 From: "Fabian P. Schmidt" Date: Fri, 23 Sep 2016 20:13:23 +0200 Subject: [PATCH] Add Vagrantfile ogn-python requires a running PostgreSQL and Celery daemon. With [vagrant][1] and [VirtualBox][2] it is possible to create a clean development environment inside a virtual machine. This commit was greately inspired by [SkyLines][3]. [1]: https://www.vagrantup.com/ [2]: https://www.virtualbox.org/ [3]: https://github.com/skylines-project/skylines --- README.md | 4 ++++ Vagrantfile | 35 +++++++++++++++++++++++++++++++++++ config/default.py | 2 +- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Vagrantfile diff --git a/README.md b/README.md index ae6de92..2c871c3 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ It requires [PostgreSQL](http://www.postgresql.org/) and [PostGIS](http://www.po ./manage.py db.init ``` +There is also a [Vagrant](https://www.vagrantup.com/) environment for the development of ogn-python. +You can create and start this virtual machine with `vagrant up` and login with `vagrant ssh`. +The code of ogn-python will be available in the shared folder `/vagrant`. + ## Usage ### Running the aprs client and task server To schedule tasks like takeoff/landing-detection (`logbook.compute`), diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..8ee8c2a --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,35 @@ +$script = <