Skip to content

IN-CORE/maestro-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f28eb32 · Mar 27, 2024

History

28 Commits
Mar 16, 2023
Mar 16, 2022
Mar 21, 2024
Dec 1, 2022
Dec 10, 2022
Mar 21, 2024
Dec 10, 2022
Mar 15, 2022
Dec 8, 2022
Dec 1, 2022
Dec 8, 2022
Mar 21, 2024

Repository files navigation

Maestro Service

Service to manage playbooks

Configuration Guide

Pre-requisites

  • Python 3.9
  • Install poetry: pip install poetry

Run

Install packages: poetry install

Setup Environment

Look at env-example for an example environment file and update parameters with your database settings. For example:

#!/bin/bash

export POSTGRES_SERVER=localhost
export POSTGRES_USER=posgres
export POSTGRES_PASSWORD=maestro
export POSTGRES_DB=maestro
export POSTGRES_PORT=5432
export ROUTER_PREFIX=/maestro

Run: uvicorn app.main:app --reload

You should be able to run: http://localhost:8000/ for base route that return welcome message http://localhost:8000/docs for swagger docs

Docker

Build Docker container

docker build --tag incore/maestro-service:latest .

Run Docker container

See Setup Environment section for populating the example-env

To run the container: docker run -p 8000:8000 --env-file env-example incore/maestro-service:latest