This repository provides an easy setup for the workflow manager worker.
Before you begin, ensure you have the following tools installed:
python
: Version 3.10 or higherpoetry
: Python packaging and dependency management toolfrinx-machine
: Follow the instructions at Frinx Machine GitHubmirrord
: Install Mirrord to your IDE/ENV and set kubeconfig context to right cluster/namespace.
Ensure you are using Python version 3.10 or higher.
Set up your environment and install dependencies with poetry
:
# Use python version 3.10 or higher
poetry env use python3.10
poetry install
Use a config/env_local.template file and configure it as follows:
# WORKER RBAC
X_AUTH_USER_GROUP=FRINXio
Export the environment variables and run the main script:
export $(cat config/env_local.template | sed -e /^$/d -e /^#/d | xargs)
mirrord exec poetry run python3 main.py --target targetless