Compare commits
200 Commits
Author | SHA1 | Date |
---|---|---|
amalelshihaby | 5f4b10cb82 | |
amalelshihaby | 02ad7a9441 | |
amalelshihaby | 8ca5b2d104 | |
sangheekim | eb86c7e189 | |
amalelshihaby | 2e05ebbf67 | |
amalelshihaby | 1aeb757e22 | |
amalelshihaby | 1c3d3efb3a | |
amalelshihaby | 7986b825a7 | |
amalelshihaby | 5bb0c4cdda | |
amalelshihaby | 030a0cd501 | |
amalelshihaby | 5564400ef8 | |
amalelshihaby | 94dac8110e | |
amalelshihaby | 4a0987766d | |
amalelshihaby | 20ce755303 | |
amalelshihaby | c4f7913cb1 | |
nico14571 | 8287e73f6b | |
amalelshihaby | b7aa1c6971 | |
Nico Schottelius | e205d8d07c | |
Nico Schottelius | a463bcf7bd | |
Nico Schottelius | d872357dd1 | |
Nico Schottelius | 485f08e25c | |
Nico Schottelius | 745abc48ef | |
Nico Schottelius | 49f52fd41d | |
Nico Schottelius | c8ce7dbb40 | |
Nico Schottelius | a920887100 | |
Nico Schottelius | 6b9b15e663 | |
Nico Schottelius | 48ce21f833 | |
Nico Schottelius | 6c15d2086e | |
Nico Schottelius | 1b06d8ee03 | |
Nico Schottelius | e225bf1cc0 | |
Nico Schottelius | e2c4a19049 | |
Nico Schottelius | 74749bf07c | |
Nico Schottelius | 93e5d39c7b | |
Nico Schottelius | 18d4c99571 | |
Nico Schottelius | e51edab2f5 | |
Nico Schottelius | f7c68b5ca5 | |
Nico Schottelius | 6efedcb381 | |
Nico Schottelius | df4c0c3060 | |
Nico Schottelius | 8dd4b712fb | |
Nico Schottelius | 50a395c8ec | |
Nico Schottelius | 663d72269a | |
Nico Schottelius | a0fbe2d6ed | |
Nico Schottelius | 858aabb5ba | |
Nico Schottelius | ece2bca831 | |
Nico Schottelius | cdab685269 | |
Nico Schottelius | 689375a2fe | |
Nico Schottelius | 8f83679c48 | |
Nico Schottelius | 5e870f04b1 | |
Nico Schottelius | 63191c0a88 | |
Nico Schottelius | 03c0b34446 | |
Nico Schottelius | 1922a0d92d | |
Nico Schottelius | 2e6c72c093 | |
Nico Schottelius | b3626369a2 | |
Nico Schottelius | 179baee96d | |
Nico Schottelius | 054886fd9c | |
Nico Schottelius | e2b36c8bca | |
Nico Schottelius | 372fe800cd | |
Nico Schottelius | 16f3adef93 | |
Nico Schottelius | 2d62388eb1 | |
Nico Schottelius | aec79cba74 | |
Nico Schottelius | cd19c47fdb | |
Nico Schottelius | cf948b03a8 | |
Nico Schottelius | 5716cae900 | |
Nico Schottelius | 10d5a72c5a | |
Nico Schottelius | 074cffcbd7 | |
Nico Schottelius | 7f32d05cd4 | |
Nico Schottelius | 0fd5ac18cd | |
Nico Schottelius | ad0c2f1e9d | |
Nico Schottelius | 0b1c2cc168 | |
ahmadbilalkhalid | 4845ab1e39 | |
Nico Schottelius | ecc9e6f734 | |
Nico Schottelius | 20c7c86703 | |
Nico Schottelius | 8959bc6ad5 | |
Nico Schottelius | 0cd8a3a787 | |
Nico Schottelius | bbc7625550 | |
Nico Schottelius | fe4e200dc0 | |
Nico Schottelius | e03cdf214a | |
Nico Schottelius | 50fd9e1f37 | |
Nico Schottelius | 2e74661702 | |
Nico Schottelius | c26ff253de | |
Nico Schottelius | 9623a77907 | |
Nico Schottelius | c435639241 | |
Nico Schottelius | 992c7c551e | |
Nico Schottelius | 58883765d7 | |
Nico Schottelius | 8d8c4d660c | |
Nico Schottelius | c32499199a | |
Nico Schottelius | c6bacab35a | |
Nico Schottelius | 1aead50170 | |
Nico Schottelius | d8a7964fed | |
Nico Schottelius | 077c665c53 | |
Nico Schottelius | f7274fe967 | |
Nico Schottelius | 1c7d81762d | |
Nico Schottelius | 18f9a3848a | |
Nico Schottelius | 9211894b23 | |
Nico Schottelius | b8b15704a3 | |
Nico Schottelius | ab412cb877 | |
Nico Schottelius | 7b83efe995 | |
Nico Schottelius | 4d5ca58b2a | |
Nico Schottelius | f693dd3d18 | |
Nico Schottelius | 5ceaaf7c90 | |
Nico Schottelius | 2b29e300dd | |
Nico Schottelius | 8df1d8dc7c | |
Nico Schottelius | ef02cb61fd | |
Nico Schottelius | 70c450afc8 | |
Nico Schottelius | 0dd1093812 | |
Nico Schottelius | 6a928a2b2a | |
Nico Schottelius | 89519e48a9 | |
Nico Schottelius | e169b8c1d1 | |
Nico Schottelius | d7c0c40926 | |
Nico Schottelius | fd39526350 | |
Nico Schottelius | 78d1de9031 | |
Nico Schottelius | db1a69561b | |
Nico Schottelius | 9bf0a99f6a | |
Nico Schottelius | c9be8cc50b | |
Nico Schottelius | 8da6a1e19c | |
Nico Schottelius | ff8fdb76b1 | |
Nico Schottelius | 9b00ef11fb | |
Nico Schottelius | d2bd6ba200 | |
Nico Schottelius | 165dacb7bf | |
Nico Schottelius | ee79877a27 | |
Nico Schottelius | 2ce667e8c7 | |
Nico Schottelius | e563780142 | |
Nico Schottelius | 66233a1ce5 | |
Nico Schottelius | 9d5d8657cb | |
Nico Schottelius | a091079677 | |
Nico Schottelius | c9a941e290 | |
Nico Schottelius | f7b14bf507 | |
Nico Schottelius | ed40b21d16 | |
Nico Schottelius | 880e4d046b | |
Nico Schottelius | cbd5a08ae7 | |
Nico Schottelius | 64780bfc6c | |
Nico Schottelius | 9c1b4ab275 | |
Nico Schottelius | 2771a7518a | |
Nico Schottelius | 9b3493a661 | |
Nico Schottelius | 932ac06cea | |
Nico Schottelius | 05a897db70 | |
Nico Schottelius | 011096f152 | |
Nico Schottelius | 55ba61e36b | |
Nico Schottelius | 1265e23750 | |
Nico Schottelius | bc0c77a393 | |
Nico Schottelius | bdba3bffe2 | |
Nico Schottelius | 3745a0e2b1 | |
Nico Schottelius | 7ce28b0b60 | |
Nico Schottelius | 662e706eab | |
Nico Schottelius | 11de455d23 | |
Nico Schottelius | 126d9da764 | |
Nico Schottelius | 8a17ee6de5 | |
Nico Schottelius | 721472b416 | |
Nico Schottelius | 424ceafbb8 | |
Nico Schottelius | 1e68539ed8 | |
Nico Schottelius | 3ef19610f3 | |
Nico Schottelius | 8decfe1b16 | |
Nico Schottelius | 662845128f | |
Nico Schottelius | 95011c2058 | |
Nico Schottelius | a3f3ca8cf9 | |
Nico Schottelius | 5d1eaaf0af | |
Nico Schottelius | bcd141730d | |
Nico Schottelius | 15535433e8 | |
Nico Schottelius | 18b862c2e1 | |
Nico Schottelius | b8652c921e | |
Nico Schottelius | 8bbcc5df5f | |
Nico Schottelius | 0202f80a37 | |
Nico Schottelius | caedf874e4 | |
Nico Schottelius | f17f9060b0 | |
Nico Schottelius | 04fac71a85 | |
Nico Schottelius | ef76304bae | |
Nico Schottelius | ec447e0dc4 | |
Nico Schottelius | ca2065a94d | |
Nico Schottelius | dc7a465a8c | |
fnux | 65440ab2ef | |
fnux | d794b24c86 | |
fnux | df059fb00d | |
fnux | 67af7b5465 | |
fnux | beb5bd7ee4 | |
fnux | 9574d69f4c | |
fnux | 74e2168529 | |
fnux | 444d6ded28 | |
fnux | cbba1f4169 | |
fnux | d47c94ba84 | |
fnux | 89e853b490 | |
Nico Schottelius | 1b97fc8fc7 | |
Nico Schottelius | 41a2f18453 | |
fnux | a086d46136 | |
fnux | ae2bad5754 | |
fnux | 3874165189 | |
fnux | 56d98cbb55 | |
fnux | 718abab9d2 | |
fnux | 268e08c4db | |
fnux | b8ac99acb6 | |
fnux | 221d98af4b | |
fnux | ebd4e6fa1b | |
fnux | b512d42058 | |
fnux | 1245c191c0 | |
fnux | 95d43f002f | |
fnux | 0560063326 | |
fnux | db3c29d17e | |
fnux | 892b2b6f13 | |
Nico Schottelius | aa8ade4730 | |
Nico Schottelius | 594f1a9b69 | |
Nico Schottelius | e3b28354fe |
|
@ -22,5 +22,8 @@ uncloud/version.py
|
|||
build/
|
||||
venv/
|
||||
dist/
|
||||
|
||||
.history/
|
||||
*.iso
|
||||
*.sqlite3
|
||||
.DS_Store
|
||||
static/CACHE/
|
||||
|
|
|
@ -4,7 +4,7 @@ stages:
|
|||
|
||||
run-tests:
|
||||
stage: test
|
||||
image: fedora:latest
|
||||
image: code.ungleich.ch:5050/uncloud/uncloud/uncloud-ci:latest
|
||||
services:
|
||||
- postgres:latest
|
||||
variables:
|
||||
|
@ -12,11 +12,7 @@ run-tests:
|
|||
DATABASE_USER: postgres
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
coverage: /^TOTAL.+?(\d+\%)$/
|
||||
before_script:
|
||||
- dnf install -y python3-devel python3-pip python3-coverage libpq-devel openldap-devel gcc chromium
|
||||
script:
|
||||
- cd uncloud_django_based/uncloud
|
||||
- pip install -r requirements.txt
|
||||
- cp uncloud/secrets_sample.py uncloud/secrets.py
|
||||
- coverage run --source='.' ./manage.py test
|
||||
- coverage report
|
||||
|
|
71
README.md
71
README.md
|
@ -1,3 +1,70 @@
|
|||
# ucloud
|
||||
# Uncloud
|
||||
|
||||
Checkout https://ungleich.ch/ucloud/ for the documentation of ucloud.
|
||||
Cloud management platform, the ungleich way.
|
||||
|
||||
|
||||
[![pipeline status](https://code.ungleich.ch/uncloud/uncloud/badges/master/pipeline.svg)](https://code.ungleich.ch/uncloud/uncloud/commits/master)
|
||||
[![coverage report](https://code.ungleich.ch/uncloud/uncloud/badges/master/coverage.svg)](https://code.ungleich.ch/uncloud/uncloud/commits/master)
|
||||
|
||||
## Useful commands
|
||||
|
||||
* `./manage.py import-vat-rates path/to/csv`
|
||||
* `./manage.py createsuperuser`
|
||||
|
||||
## Development setup
|
||||
|
||||
Install system dependencies:
|
||||
|
||||
* On Fedora, you will need the following packages: `python3-virtualenv python3-devel openldap-devel gcc chromium`
|
||||
* sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
|
||||
|
||||
|
||||
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.
|
||||
```
|
||||
### Run Background Job Queue
|
||||
We use Django Q to handle the asynchronous code and Background Cron jobs
|
||||
To start the workers make sure first that Redis or the Django Q broker is working and you can edit it's settings in the settings file.
|
||||
```
|
||||
./manage.py qcluster
|
||||
```
|
||||
|
||||
### 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`
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
dbhost=$1; shift
|
||||
|
||||
ssh -L5432:localhost:5432 "$dbhost" &
|
||||
|
||||
python manage.py "$@"
|
||||
|
||||
|
||||
|
||||
# command only needs to be active while manage command is running
|
||||
|
||||
# -T no pseudo terminal
|
||||
|
||||
|
||||
# alternatively: commands output shell code
|
||||
|
||||
# ssh uncloud@dbhost "python manage.py --hostname xxx ..."
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue