django-orchestra/README.md

122 lines
5.9 KiB
Markdown
Raw Normal View History

2014-05-08 16:59:35 +00:00
![](orchestra/static/orchestra/icons/Emblem-important.png) **This project is in early development stage**
Django Orchestra
================
Orchestra is a Django-based framework for building web hosting control panels.
2016-02-16 11:31:27 +00:00
* [Installation](#fast-deployment-setup)
2014-05-08 16:59:35 +00:00
* [Roadmap](ROADMAP.md)
Motivation
----------
2014-05-08 16:59:35 +00:00
There are a lot of widely used open source hosting control panels, however, none of them seems apropiate when you already have an existing service infrastructure or simply you want your services to run on a particular architecture.
2016-02-17 09:22:43 +00:00
The goal of this project is to provide the tools for easily build a fully featured control panel that is not tied to any particular service architecture.
2014-05-08 16:59:35 +00:00
Overview
--------
2016-02-16 11:14:38 +00:00
* The **admin interface** is based on [Django Admin](https://docs.djangoproject.com/en/dev/ref/contrib/admin/). The resulting interface is very model-centric with a limited workflow pattern: change lists, add and change forms. The advantage is that only little declarative code is required.
* It does **not** provide a **customer-facing interface**, but provides a REST API that allows you to build one.
* Service [orchestration](orchestra/contrib/orchestration), [resource management](orchestra/contrib/resources), [billing](orchestra/contrib/bills), [accountancy](orchestra/contrib/orders) is provided in a decoupled way, meaning:
* You can [develop new services](docs/create-services.md) without worring about those parts
2016-02-16 11:19:03 +00:00
* You can replace any of these parts by your own implementation without carring about the others
2016-02-16 11:14:38 +00:00
* You can reuse any of those modules on your Django projects
2016-09-02 14:50:43 +00:00
* Be advised, because its flexibility Orchestra may be more tedious to deploy than traditional web hosting control panels.
2014-05-08 16:59:35 +00:00
2014-10-18 12:29:14 +00:00
![](docs/images/index-screenshot.png)
2014-05-08 16:59:35 +00:00
2016-02-16 11:14:38 +00:00
2015-05-01 18:15:35 +00:00
Fast Deployment Setup
---------------------
2016-02-17 09:22:43 +00:00
This deployment is **not suitable for production** but more than enough for checking out this project. For other deployments checkout these links:
* [Development](INSTALLDEV.md)
* [Production](INSTALL.md)
2015-05-01 18:15:35 +00:00
```bash
2015-05-04 10:48:09 +00:00
# Create and activate a Python virtualenv
2016-02-04 15:39:47 +00:00
# Make sure python3.x-venv package is installed on your system
2015-05-03 20:08:32 +00:00
python3 -mvenv env-django-orchestra
2015-05-01 18:15:35 +00:00
source env-django-orchestra/bin/activate
2015-05-03 20:10:31 +00:00
# Install Orchestra and its dependencies
2016-01-09 10:40:04 +00:00
pip3 install http://git.io/django-orchestra-dev
2015-10-05 13:31:08 +00:00
# The only non-pip required dependency for runing pip3 install is python3-dev
sudo apt-get install python3-dev
2015-10-03 10:37:43 +00:00
pip3 install -r http://git.io/orchestra-requirements.txt
2015-05-03 20:08:32 +00:00
# Create a new Orchestra site
2015-05-03 20:08:32 +00:00
orchestra-admin startproject panel
2015-05-01 18:15:35 +00:00
python3 panel/manage.py migrate
python3 panel/manage.py runserver
```
2016-02-17 09:22:43 +00:00
Now you can see the web interface on `http://localhost:8000/admin/`
2015-05-04 14:46:03 +00:00
2014-05-08 16:59:35 +00:00
2016-02-16 11:30:48 +00:00
Quick Start
2016-02-16 11:14:38 +00:00
-----------
0. Install django-orchestra following any of these methods:
2016-02-16 11:31:27 +00:00
1. [PIP-only, Fast deployment setup (demo)](#fast-deployment-setup)
2016-02-16 11:14:38 +00:00
2. [Docker container (development)](INSTALLDEV.md)
3. [Install on current system (production)](INSTALL.md)
2016-05-07 19:52:30 +00:00
1. Generate a password-less SSH key for user `orchestra` and transfer it to your servers:
2016-02-16 11:14:38 +00:00
```bash
2016-05-07 19:52:30 +00:00
orchestra@panel:~ ssh-keygen
2016-02-16 11:14:38 +00:00
orchestra@panel:~ ssh-copy-id root@server.address
```
2016-05-07 19:52:30 +00:00
Now add the servers using the web interface `/admin/orchestration/servers`, check that the SSH connection is working and Orchestra is able to report servers uptimes.
2016-02-16 11:14:38 +00:00
2016-05-07 10:32:51 +00:00
2. Configure your services, one at a time, staring with domains, databases, webapps, websites, ...
2016-02-17 09:22:43 +00:00
1. Add related [routes](orchestra/contrib/orchestration) via `/admin/orchestration/route/`
2016-02-16 11:14:38 +00:00
2. Configure related settings on `/admin/settings/setting/`
2016-05-07 10:32:51 +00:00
3. If required, configure related [resources](orchestra/contrib/resources) like *account disk limit*, *VPS traffic*, etc `/resources/resource/`
3. Test if create and delete service instances works as expected
2016-02-17 09:22:43 +00:00
4. Do the same for the remaining services. You can disable services that you don't want by editing `INSTALLED_APPS` setting
2016-02-16 11:14:38 +00:00
2016-05-07 10:32:51 +00:00
3. Configure billing by adding [services](orchestra/contrib/services) `/admin/services/service/add/` and [plans](orchestra/contrib/plans) `/admin/plans/plan/`. Once a service is created hit the *Update orders* button to create orders for existing service instances, orders for new instances will be automatically created.
2016-02-16 11:14:38 +00:00
2014-05-08 16:59:35 +00:00
License
-------
2014-11-16 14:45:59 +00:00
Copyright (c) 2014 - Marc Aymerich and individual contributors.
2014-11-13 17:47:45 +00:00
All Rights Reserved.
Django-orchestra is licensed under The BSD License (3 Clause, also known as
the new BSD license). The license is an OSI approved Open Source
license and is GPL-compatible(1).
The license text can also be found here:
http://www.opensource.org/licenses/BSD-3-Clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
2014-11-16 14:45:59 +00:00
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
2014-11-16 14:47:11 +00:00
* Neither the name of Marc Aymerich, nor the
2014-11-16 14:45:59 +00:00
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
2014-11-13 17:47:45 +00:00
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Ask Solem OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.