This API service is used for administrative and operational tasks for a Thoth deployment. For Management API interaction, one needs a token that can be obtained by contacting Thoth deployment administrator.
The service is built using OpenShift Source-to-Image and deployed automatically via Argo CD - see thoth-station/thoth-application repository.
Management API can be run locally in a mode when it still talks to the cluster.
To run Management API locally, create .env
file out out .env.template
and adjust environment variable values as desired (see thoth-station/storages for more info):
cp .env.template .env
vim .env
Once the environment is properly setup, you can run Management API locally:
pipenv install
pipenv run gunicorn thoth.management_api.openapi_server:app --config gunicorn.conf.py