Installation and Configuration Reference
This page covers the full installation process and configuration details for Drona Workflow Engine.
Prerequisites
- Python 3.9+
- Node.js and npm
- Git
What setup.sh Does
The setup script automates the following steps:
- Asks for your cluster name and uses it to fill in
config.yml - Configures
config.ymlandmanifest.ymlby replacing[app-name]and[user-name]placeholders with actual values - Asks for the retriever script timeout in seconds (press Enter for the default,
10) and writes it toconfig.ymlasretriever_timeout(see the Configuration section below) - Asks whether users may import environments from the environment repository (press Enter for the default, yes) and writes it to
config.ymlasenv_import_enabled - Asks for a deployment target —
OOD (production),OOD (development), orLocal (debug)— and writes the corresponding value (production,development, orlocal) to a.envfile asAPP_ENV. This must match one of the top-level sections inconfig.yml(see the Configuration section below);app.pyreadsAPP_ENVat startup to pick which section to use. - Creates directories —
environments/for system Drona Environments andlogs/for application logging, including the sharedlogs/drona_logandlogs/retriever_errorsfiles - Sets up a Python virtual environment in
.venvand installs dependencies fromrequirements.txt - Installs frontend dependencies (
npm ci) and builds the React frontend
Manual Installation
If you prefer to install manually or need to adapt the process for your system:
git clone https://github.com/tamu-edu/dor-hprc-drona-composer.git
cd dor-hprc-drona-composer
# Create required directories
mkdir -p environments logs
touch logs/drona_log
chmod uog+rw logs/drona_log
# Choose a deployment target — must be exactly "production", "development", or "local"
# to match a top-level section in config.yml
echo "APP_ENV=production" > .env
# Python setup
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Frontend setup
npm ci --no-audit --no-fund
npm run build:prod:compress
Configuration
config.yml
The main configuration file controls application behavior. Key settings:
development: &common_settings
cluster_name: "MyCluster" # Your cluster name
scheduler: "slurm" # Optional: batch scheduler (default slurm)
dashboard_url: "/pun/dev/drona-composer" # URL path for the app
driver_scripts_path: "/path/to/machine_driver_scripts"
env_repo_github: "https://github.com/..." # Environment repository URL
env_repo_ref: "drona-v2" # Optional: branch of the environment repository
retriever_timeout: 10 # Optional: seconds before a retriever script is killed
env_import_enabled: true # Optional: false hides Import; users can't import environments
production:
<<: *common_settings
dashboard_url: "/pun/sys/drona-composer"
# local doesn't inherit from common_settings — it's meant for running
# outside Open OnDemand entirely, so paths like driver_scripts_path are local
local:
cluster_name: "Local"
dashboard_url: "http://localhost:5000"
driver_scripts_path: "./machine_driver_scripts"
env_repo_github: "https://github.com/..."
The section chosen at runtime is whichever one matches APP_ENV (set in .env by setup.sh, or exported directly in your shell) — development, production, or local.
cluster_name— Display name for the cluster, used internally and in form titles. Lowercased, it also selects the Slurm cluster profileruntime_support/schedulers/slurm/clusters/<name>.py(default.pywhen there is none)scheduler(optional, defaultslurm) — Selectsruntime_support/schedulers/<name>/, which Drona uses for job states, cancelling jobs, reading the submit output and the scheduler-specific retrievers. Onlyslurmexists today; seeruntime_support/schedulers/README.mdfor what another scheduler has to provide. Read once at startup (environment variableDRONA_SCHEDULERwins)- The module picker has no site-wide setting: each environment sets
module_db_rooton its module element (see Form Components → Module). The oldmodules_db_pathkey is no longer read and can be removed. driver_scripts_path— Absolute path to themachine_driver_scripts/directoryenv_repo_github— GitHub repository URL from which users can import environments. It can be Drona's default repository, your own fork of it, or a new repository with the same layout (see Publishing Environments).env_repo_ref(optional, defaultdrona-v2) — Branch ofenv_repo_githubto list and import environments from. If the repository doesn't have that branch,mainis used.mainof the default environment repository is kept for Drona versions from before this setting, which always readmain; environments for this Drona are ondrona-v2. See Publishing Workflows for how environments declare the Drona version they need.retriever_timeout(optional, default10) — Maximum run time in seconds for a retriever script. A script still running after this is killed along with any processes it started (e.g. a stucksqueue), and the element gets a "timed out" error (HTTP 504) naming the script. This stops a slow Slurm controller from tying up the app while periodic refreshes queue up behind it.setup.shasks for this value. If the key is missing (e.g. aconfig.ymlcreated before this setting existed), theDRONA_RETRIEVER_TIMEOUTenvironment variable is used, then10. The value is read once when the app starts, so restart the app after changing it; a value that isn't a positive whole number (e.g.30s) stops the app at startup with an error naming the setting. Thelocalsection doesn't inherit fromcommon_settings, so set it there separately if needed.env_import_enabled(optional, defaulttrue) — Whether users can import environments fromenv_repo_github. Withfalse, the Import tile is not shown, and the import requests (/get_more_envs_info,/add_environment) are refused with HTTP 403 without contacting the repository. Users still have the system environments and any environments they imported earlier, which they can still remove. An emptyenv_repo_githubalso turns import off.setup.shasks for this value; if the key is missing, import is enabled. Acceptstrue/false(alsoyes/no); any other value stops the app at startup with an error naming the setting. Read once at startup, so restart the app after changing it.
Every retriever failure (timeout, non-zero exit, or invalid JSON) is appended to logs/retriever_errors as one JSON object per line, with the script, its parameters, run time, and error message. Use it to see which retrievers fail and how often; for example, repeated drona_slurm_sstat.sh timeouts at the same time of day point to Slurm controller load rather than a bug in the page.
Cluster-Specific Adjustments
User Environment Directory
Each user chooses their own Drona directory at first launch, and it is saved as drona_dir in ~/.drona/config.json. Personal environments are kept in <drona_dir>/environments, so nothing has to be configured per cluster.
Temporary Directory
During a preview, the files, messages and mappings that environment functions add (drona_add_* in
packages/drona_utils/core.py) are kept in a private directory created for that preview only
(/tmp/drona-preview-XXXXXX, mode 0700, removed afterwards). /tmp is used, not $TMPDIR, because it should be fast local
disk. To use a different location, change PREVIEW_TMP_ROOT in machine_driver_scripts/engine.py.