Veritaris / aio-camunda-external-task-worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panama TSE

Where to place external-check?

Inside app/ext_check.py

How to develop locally?

We use Poetry for local development. Consider installing it.

After that you need to create Gitlab access token with read_api, read_registry and read_repository scopes.

Then add your access credentials and registry with:

$ poetry config repositories.legal-checks https://gitlab.mati.io/api/v4/projects/323/packages/pypi/
$ poetry config http-basic.legal-checks <access_token_name> <access_token_value>

Note: you should do this step only ONCE

And finally, you can install all required dependecies:

$ poetry install

How to run service locally?

you need to set environment variables. an example can be taken from the deploy configs or the pytest.ini file

command to run rmq consumer:

$ python -m app.worker

command to run http server:

$ python -m uvicorn app.api:app

Deploy to env instruction:

Gitlab link

About

License:MIT License