Skip to content

Cosmo-Tech/run

Repository files navigation

Run a solution

This project provides a minimal Python script for running Cosmotech Brewery simulations in CI/CD pipelines.

Required Environment Variables

COSMOTECH_API_URL=https://cluster/tenant/version
SERVER_URL=https://cluster/keycloak/
REALM_NAME=code_name
COSMOTECH_CLIENT_ID=automation-client
COSMOTECH_CLIENT_SECRET=your_client_secret
LOG_LEVEL=INFO  # Optional, defaults to INFO

Installation

  1. Install the uv package manager:
pip install uv
  1. Copy .env.example to .env and fill in your credentials:
cp .env.example .env
  1. Create and activate a virtual environment:
uv venv
source .venv/bin/activate
  1. Install dependencies:
# For production use
uv pip install .

# For development (includes testing dependencies)
uv pip install -e .
  1. Activate VPN and run the simulation:
python3 -m run.main

Alternatively run with docker:

docker build -t cosmotech-run .
docker run --env-file .env cosmotech-run

About

Run a sample simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published