mozilla/kitsune — pull request #1571 by shuhaowu (2013-08-16 00:09:35+00:00)
Title: Added vagrant setup [blocked]

`vagrant up` and go!

Actually, it's not that simple:

- You need to install nfsd on your host machine for file share
- You need to create settings_local.py and redis configs before starting the vm.
- You need to generate the fake data after this setup your vm.

In the vm, /kitsune maps the kitsune directory.

See status at https://bugzilla.mozilla.org/show_bug.cgi?id=905834.
Note there are some bugs blocking this.

To run tests, we need to resolve #1568 or run `./manage.py esreindex --delete --percent 1`

Some convenience things added into the VM:

- `t` runs the tests if you're in /kitsune
- you're automatically cd'ed into /kitsune whenever you start a new prompt.

Some notes:
- there's not virtualenv. Since this VM is dedicated to just kitsune, just install things globally.
- the system default python is 2.6, matching the production stuff. So some ubuntu stuff might break because they rely on 2.7 or libraries with 2.7. Hopefully not much is broken by that.
- The bootstrap is literally a script.. so not sure if that is the best idea.

Probably not ready for merge yet. To get this ready for merging, I would need to checkout a new kitsune and see if it works without a semi existing installation. That's only for when I have more time as I've already spent enough time on this...