Skip to content

An API service used for administration of deployed Thoth

License

Notifications You must be signed in to change notification settings

thoth-station/management-api

Repository files navigation

Thoth Core Management API

GitHub tag (latest by date) Quay - Build Codacy Badge

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.

Installation and deployment

The service is built using OpenShift Source-to-Image and deployed automatically via Argo CD - see thoth-station/thoth-application repository.

Running Management API locally

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