Commit 1b97fc8f authored by Nico Schottelius's avatar Nico Schottelius

Merge branch 'master' of

parents 41a2f184 a086d461
Pipeline #1400 failed with stage
in 3 minutes and 11 seconds
......@@ -24,3 +24,4 @@ venv/
......@@ -15,8 +15,6 @@ run-tests:
- dnf install -y python3-devel python3-pip python3-coverage libpq-devel openldap-devel gcc chromium
- cd uncloud_django_based/uncloud
- pip install -r requirements.txt
- cp uncloud/ uncloud/
- coverage run --source='.' ./ test
- coverage report
# ucloud
# Uncloud
Checkout for the documentation of ucloud.
Cloud management platform, the ungleich way.
[![pipeline status](](
[![coverage report](](
## Useful commands
* `./ import-vat-rates path/to/csv`
* `./ 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/`.
# 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...
# Enter virtualenv.
» source .venv/bin/activate
# Install dependencies.
» pip install -r requirements.txt
# Run migrations.
» ./ 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.
» ./ 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
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`
dbhost=$1; shift
ssh -L5432:localhost:5432 "$dbhost" &
python "$@"
# command only needs to be active while manage command is running
# -T no pseudo terminal
# alternatively: commands output shell code
# ssh uncloud@dbhost "python --hostname xxx ..."
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment