Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

JustAGhosT/codeflow-orchestration

Repository files navigation

CodeFlow Orchestration

This repository contains orchestration scripts, documentation, infrastructure-as-code, and planning for the CodeFlow project.


Overview

The CodeFlow Orchestration repository serves as the central hub for:

  • Infrastructure as Code - Production Azure infrastructure (Bicep, Terraform, Kubernetes)
  • Azure Bootstrap - Generic reusable Azure environment setup scripts
  • Cross-repository Coordination - Version management, migration, and deployment
  • Comprehensive Documentation - Guides, policies, and references

Repository Structure

codeflow-orchestration/
├── infrastructure/              # Production Infrastructure (from codeflow-infrastructure)
│   ├── bicep/                  # Azure Bicep templates
│   ├── terraform/              # Terraform configurations
│   ├── kubernetes/             # Kubernetes manifests
│   ├── docker/                 # Docker development environment
│   └── scripts/                # Deployment & monitoring scripts
├── bootstrap/                   # Generic Azure Bootstrap (from codeflow-azure-setup)
│   └── scripts/                # Reusable Azure setup scripts
├── packages/                    # Shared utility packages
│   ├── @codeflow/utils/        # TypeScript utilities (npm)
│   └── codeflow-utils-python/  # Python utilities (PyPI)
├── scripts/                     # Orchestration scripts
│   ├── check-versions.ps1
│   ├── bump-version.ps1
│   ├── sync-versions.ps1
│   └── dev-setup.ps1
└── docs/                        # Documentation

Quick Links

Infrastructure

Bootstrap (Generic Azure Setup)

Migration Documentation

Key Documentation


Migration Progress

Overall: 72% Complete

Wave Status Progress
Wave 1: Critical Foundation Complete 95%
Wave 2: Quality & Documentation Complete 92%
Wave 3: Operations & Infrastructure Complete 90%
Wave 4: Optimization & Enhancement In Progress 65%

Infrastructure

The infrastructure/ directory contains production-ready Azure infrastructure definitions:

Bicep Templates (Recommended)

  • codeflow-engine.bicep - Container Apps, PostgreSQL, Redis
  • website.bicep - Static Web Apps
  • main.bicep - Legacy AKS infrastructure

Terraform (Alternative)

  • Cloud-agnostic infrastructure definitions
  • State stored in Azure Blob Storage

Kubernetes

  • Deployment manifests for AKS clusters
  • Service, ConfigMap, and Kustomize configs

Docker

  • docker-compose.yml - Full local development stack
  • Includes PostgreSQL, Redis, Prometheus, Grafana

Deploy Infrastructure

# Deploy CodeFlow Engine to Azure
cd infrastructure/bicep
bash deploy-codeflow-engine.sh prod san eastus2

# Or use Terraform
cd infrastructure/terraform
terraform init
terraform apply

Bootstrap (Generic Azure Setup)

The bootstrap/ directory contains generic, reusable Azure environment setup scripts:

Available Scripts

Script Purpose
New-AzRepoEnvironment.ps1 Create core Azure resources (RG, Storage, Log Analytics, App Insights)
New-AzRepoFullEnvironment.ps1 Full environment with App Service, Container Apps, Managed Identity
Set-GitHubSecretsFromJson.ps1 Configure GitHub secrets from Azure output

Usage

# Create basic environment
./bootstrap/scripts/New-AzRepoEnvironment.ps1 `
    -OrgCode "nl" `
    -Environment "dev" `
    -Project "myproject" `
    -RegionShort "san" `
    -Location "southafricanorth"

# Set GitHub secrets
./bootstrap/scripts/Set-GitHubSecretsFromJson.ps1 `
    -JsonPath "./environment.json" `
    -Repo "owner/repo"

Orchestration Scripts

Version Management

# Check versions across all repos
pwsh scripts/check-versions.ps1

# Bump version in a repo
pwsh scripts/bump-version.ps1 -Type minor

# Sync versions across repos
pwsh scripts/sync-versions.ps1 -Version "1.2.0"

Migration

# Migrate AutoPR to CodeFlow (dry run)
pwsh scripts/migrate-autopr-to-codeflow.ps1 -DryRun

# Migrate AutoPR to CodeFlow (execute)
pwsh scripts/migrate-autopr-to-codeflow.ps1

Development

# Set up local development environment
pwsh scripts/dev-setup.ps1
# Or bash version
bash scripts/dev-setup.sh

Shared Packages

TypeScript (@codeflow/utils)

npm install @codeflow/utils

Provides:

  • Date/time formatting utilities
  • Number formatting utilities
  • String formatting utilities
  • URL validation

Python (codeflow-utils-python)

pip install codeflow-utils-python

Provides:

  • Error handling utilities
  • Retry decorators
  • Rate limiting
  • Validation helpers

Related Repositories

Archived Repositories

The following repositories have been merged into this one:

  • codeflow-infrastructure./infrastructure/
  • codeflow-azure-setup./bootstrap/

Getting Started

For New Contributors

  1. Read the Documentation

  2. Set Up Local Environment

    pwsh scripts/dev-setup.ps1
  3. Check Versions

    pwsh scripts/check-versions.ps1

For Infrastructure Engineers

  1. Review Infrastructure

  2. Deploy

    cd infrastructure/bicep
    bash deploy-codeflow-engine.sh dev san eastus2

For Release Managers

  1. Review Release Process

  2. Use Version Scripts

    pwsh scripts/bump-version.ps1 -Type minor
    pwsh scripts/sync-versions.ps1 -Version "1.2.0"

Contributing

See CONTRIBUTING.md for contribution guidelines.


Support

For questions or issues:


License

MIT License - See LICENSE file for details.


Last Updated: 2025-01-XX

About

No description or website provided.

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors