No description
Find a file
Nico Schottelius 0fd5ac18cd do not import pay->auth
Try to keep common things in the "uncloud" module
2020-12-06 11:53:37 +01:00
archive Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-05-17 22:38:49 +02:00
bin add script to reset migrations 2020-06-21 14:34:48 +02:00
doc Cleanup code so that *most* test work again 2020-11-15 15:43:11 +01:00
opennebula Phasing out Product model 2020-09-28 20:59:08 +02:00
resources Speed-up CI with pre-built image, add resources directory 2020-05-08 12:15:40 +02:00
uncloud do not import pay->auth 2020-12-06 11:53:37 +01:00
uncloud_auth do not import pay->auth 2020-12-06 11:53:37 +01:00
uncloud_net Cleanup code so that *most* test work again 2020-11-15 15:43:11 +01:00
uncloud_pay do not import pay->auth 2020-12-06 11:53:37 +01:00
uncloud_service Make recurring period a database model 2020-10-06 15:46:22 +02:00
uncloud_storage
uncloud_vm Make recurring period a database model 2020-10-06 15:46:22 +02:00
.gitignore Adapt README for SQLite 2020-05-07 12:31:59 +02:00
.gitlab-ci.yml Speed-up CI with pre-built image, add resources directory 2020-05-08 12:15:40 +02:00
LICENSE
manage.py
models.dot
models.png
README.md Add make-admin command to uncloud_auth 2020-05-07 12:45:06 +02:00
requirements.txt Create account using api 2020-11-14 14:50:43 +05:00

Uncloud

Cloud management platform, the ungleich way.

pipeline status coverage report

Useful commands

  • ./manage.py import-vat-rates path/to/csv
  • ./manage.py make-admin username

Development setup

Install system dependencies:

  • On Fedora, you will need the following packages: python3-virtualenv python3-devel openldap-devel gcc chromium

NOTE: you will need to configure a LDAP server and credentials for authentication. See uncloud/settings.py.

# Initialize virtualenv.
» virtualenv .venv
Using base prefix '/usr'
New python executable in /home/fnux/Workspace/ungleich/uncloud/uncloud/.venv/bin/python3
Also creating executable in /home/fnux/Workspace/ungleich/uncloud/uncloud/.venv/bin/python
Installing setuptools, pip, wheel...
done.

# Enter virtualenv.
» source .venv/bin/activate

# Install dependencies.
» pip install -r requirements.txt
[...]

# Run migrations.
» ./manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, opennebula, sessions, uncloud_auth, uncloud_net, uncloud_pay, uncloud_service, uncloud_vm
Running migrations:
  [...]

# Run webserver.
» ./manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
May 07, 2020 - 10:17:08
Django version 3.0.6, using settings 'uncloud.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Note on PGSQL

If you want to use Postgres:

  • Install on configure PGSQL on your base system.
  • OR use a container! podman run --rm -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust -it postgres:latest