Skip to content

FRINXio/frinx-workers-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frinx-workers-boilerplate

This repository provides an easy setup for the workflow manager worker.

Prerequisities

Before you begin, ensure you have the following tools installed:

  • python: Version 3.10 or higher
  • poetry: Python packaging and dependency management tool
  • frinx-machine: Follow the instructions at Frinx Machine GitHub
  • mirrord: Install Mirrord to your IDE/ENV and set kubeconfig context to right cluster/namespace.

Quick Start

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

Start project

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published