uncloud-mravi/nicohack202002/uncloud
2020-02-23 11:59:09 +01:00
..
opennebula Force uniqueness on uuid 2020-02-23 11:59:09 +01:00
uncloud update readme + api 2020-02-23 11:42:15 +01:00
uncloud_api update readme + api 2020-02-23 11:42:15 +01:00
uncloud_auth Mess with migrations 2020-02-23 11:41:51 +01:00
.gitignore .gitignore & more 2020-02-20 16:55:01 +01:00
manage.py hacking uncloud v202002 2020-02-20 16:52:50 +01:00
README.md update readme + api 2020-02-23 11:42:15 +01:00
requirements.txt update readme + api 2020-02-23 11:42:15 +01:00

Install

OS package requirements

Alpine:

apk add openldap-dev postgresql-dev

Python requirements

If you prefer using a venv, use:

python -m venv venv
. ./venv/bin/activate

Then install the requirements

pip install -r requirements.txt

Database requirements

Due to the use of the JSONField, postgresql is required.

First create a role to be used:

postgres=# create role nico login;

Then create the database owner by the new role:

postgres=# create database uncloud owner nico;

Secrets

cp uncloud/secrets_sample.py to uncloud/secrets.py and replace the sample values with real values.