8000 GitHub - SilverLineFramework/orchestrator: Runtime Orchestrator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SilverLineFramework/orchestrator

Repository files navigation

SilverLine Orchestrator

For quick setup, use the SilverLine Services installer:

git clone git@github.com:SilverLineFramework/silverline-services.git
cd silverline-services; make update; make orchestrator

Manual Setup

  • 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 by configure.py in hc is recommended, especially by ln -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

APIs

See the runtime control messages for full documentation. We currently implement create and delete operations for runtimes and modules.

0