Installation¶
Before building out the project, first make sure the prerequisite system packages are installed
As this makes use of a ZFS library, it either needs to be run as root (dangerous) or you need to allow /dev/zfs to be accessed by non-root users
See this issue on github.
Prerequisites¶
- ZFS
- SPL
- PostgreSQL
- Redis
Other dependencies¶
These are installed by buildout
- Celery (task queue)
Celery should be configured to run as a service. This is left as an exercise to the user :) (for now)
Todo
- Document how to set up Celery as a service (systemd, supervisor)
Installation¶
Clone the project, then from inside the project directory
virtualenv -p /usr/bin/python2 .
bin/pip install cffi
bin/pip install -r requirements/local.txt
Run mange.py with the virtualenv interpreter
bin/python manage.py runserver
Database Initialisation¶
su postgres
createuser wizfs --interactive
createdb -U wizfs wizfs
psql
psql> alter role wizfs unencrypted password '{your password here}';
Don’t for get to update the settings.py with your database password.
Then run the migrations:
bin/python manage.py migrate