Add `core prod` command with full production infrastructure tooling: - `core prod status` — parallel SSH health checks across all hosts, Galera cluster state, Redis sentinel, Docker, LB health - `core prod setup` — Phase 1 foundation: Hetzner topology discovery, managed LB creation, CloudNS DNS record management - `core prod dns` — CloudNS record CRUD with idempotent EnsureRecord - `core prod lb` — Hetzner Cloud LB status and creation - `core prod ssh <host>` — SSH into hosts defined in infra.yaml New packages: - pkg/infra: config parsing, Hetzner Cloud/Robot API, CloudNS DNS API - infra.yaml: declarative production topology (hosts, LB, DNS, SSL, Galera, Redis, containers, S3, CDN, CI/CD, monitoring, backups) Docker: - Dockerfile.app (PHP 8.3-FPM, multi-stage) - Dockerfile.web (Nginx + security headers) - docker-compose.prod.yml (app, web, horizon, scheduler, mcp, redis, galera) Ansible playbooks (runnable via `core deploy ansible`): - galera-deploy.yml, redis-deploy.yml, galera-backup.yml - inventory.yml with all production hosts CI/CD: - .forgejo/workflows/deploy.yml for Forgejo Actions pipeline Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
60 lines
2.4 KiB
Go
60 lines
2.4 KiB
Go
//go:build !ci && !php && !minimal
|
|
|
|
// full.go imports all packages for the full development binary.
|
|
//
|
|
// Build with: go build (default)
|
|
//
|
|
// This is the default build variant with all development tools:
|
|
// - dev: Multi-repo git workflows (commit, push, pull, sync)
|
|
// - ai: AI agent task management + RAG + metrics
|
|
// - go: Go module and build tools
|
|
// - php: Laravel/Composer development tools
|
|
// - build: Cross-platform compilation
|
|
// - ci: Release publishing
|
|
// - sdk: API compatibility checks
|
|
// - pkg: Package management
|
|
// - vm: LinuxKit VM management
|
|
// - docs: Documentation generation
|
|
// - setup: Repository cloning and setup
|
|
// - doctor: Environment health checks
|
|
// - test: Test runner with coverage
|
|
// - qa: Quality assurance workflows
|
|
// - monitor: Security monitoring aggregation
|
|
// - gitea: Gitea instance management (repos, issues, PRs, mirrors)
|
|
// - unifi: UniFi network management (sites, devices, clients)
|
|
// - prod: Production infrastructure management
|
|
|
|
package variants
|
|
|
|
import (
|
|
// Commands via self-registration
|
|
_ "github.com/host-uk/core/internal/cmd/ai"
|
|
_ "github.com/host-uk/core/internal/cmd/ci"
|
|
_ "github.com/host-uk/core/internal/cmd/collect"
|
|
_ "github.com/host-uk/core/internal/cmd/config"
|
|
_ "github.com/host-uk/core/internal/cmd/crypt"
|
|
_ "github.com/host-uk/core/internal/cmd/deploy"
|
|
_ "github.com/host-uk/core/internal/cmd/dev"
|
|
_ "github.com/host-uk/core/internal/cmd/docs"
|
|
_ "github.com/host-uk/core/internal/cmd/doctor"
|
|
_ "github.com/host-uk/core/internal/cmd/gitcmd"
|
|
_ "github.com/host-uk/core/internal/cmd/gitea"
|
|
_ "github.com/host-uk/core/internal/cmd/go"
|
|
_ "github.com/host-uk/core/internal/cmd/help"
|
|
_ "github.com/host-uk/core/internal/cmd/mcpcmd"
|
|
_ "github.com/host-uk/core/internal/cmd/monitor"
|
|
_ "github.com/host-uk/core/internal/cmd/php"
|
|
_ "github.com/host-uk/core/internal/cmd/pkgcmd"
|
|
_ "github.com/host-uk/core/internal/cmd/plugin"
|
|
_ "github.com/host-uk/core/internal/cmd/prod"
|
|
_ "github.com/host-uk/core/internal/cmd/qa"
|
|
_ "github.com/host-uk/core/internal/cmd/sdk"
|
|
_ "github.com/host-uk/core/internal/cmd/security"
|
|
_ "github.com/host-uk/core/internal/cmd/setup"
|
|
_ "github.com/host-uk/core/internal/cmd/test"
|
|
_ "github.com/host-uk/core/internal/cmd/unifi"
|
|
_ "github.com/host-uk/core/internal/cmd/updater"
|
|
_ "github.com/host-uk/core/internal/cmd/vm"
|
|
_ "github.com/host-uk/core/internal/cmd/workspace"
|
|
_ "github.com/host-uk/core/pkg/build/buildcmd"
|
|
)
|