For quick setup, use the SilverLine Services installer:
git clone git@github.com:SilverLineFramework/silverline-services.git
cd silverline-services; make update; make orchestrator
-
After cloning, install python requirements:
pip install -r requirements.txt
- Clone libsilverline and install (
pip install .
)
-
(Optional) Set up configuration in
config.json
. Using a configuration file generated byconfigure.py
in hc is recommended, especially byln -s hc/config/hc.cfg orchestrator/config.json
.The default values used are:
{ "http": "localhost", "http_port": 8000, "debug": true, "realm": "realm", "mqtt": "localhost", "mqtt_port": 1883, "use_ssl": false, "mqtt_username": "arts", "pwd": "mqtt_pwd.txt", "log_dir": ".", }
-
(Optional) Create the secret
key.json
file for Django; should be generated locally (i.e.secrets.token_urlsafe(64)
), and only used locally. Schema:{ "key": "put_your_secret_key_here" }
-
Make database:
python3 manage.py migrate
-
Make log directory:
mkdir -p log
-
Run server:
python3 manage.py runserver
See the runtime control messages for full documentation. We currently implement create and delete operations for runtimes and modules.