- Created coordinator installer - Migrated Redis installer to new modular pattern (_model.v, _actions.v, _factory_.v) - Fixed Redis config template for 7.0.15 compatibility (commented out unsupported directives) - Added Redis dependency check to coordinator installer - Coordinator now auto-installs and starts Redis if not available - Added progress indicators to coordinator build process - Consolidated Redis example scripts - All tests passing: Redis installation, coordinator build, and idempotency verified
31 lines
1.1 KiB
GLSL
Executable File
31 lines
1.1 KiB
GLSL
Executable File
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
|
|
|
import incubaid.herolib.installers.infra.herocoordinator
|
|
|
|
// Example usage of herocoordinator installer
|
|
// This will:
|
|
// 1. Check and install Redis if not running (required dependency)
|
|
// 2. Install Rust if not already installed
|
|
// 3. Clone the horus repository
|
|
// 4. Build the herocoordinator binary
|
|
|
|
// Build and install herocoordinator
|
|
// This will automatically check and install Redis and Rust if needed
|
|
println('Building coordinator from horus repository...')
|
|
println('(This will install Redis and Rust if not already installed)\n')
|
|
|
|
// Call build_coordinator - it will handle all dependencies
|
|
herocoordinator.build_coordinator()!
|
|
|
|
println('\n✅ Herocoordinator built and installed successfully!')
|
|
println('Binary location: /hero/var/bin/coordinator')
|
|
|
|
// Note: To start the service, uncomment the lines below
|
|
// (requires proper zinit or screen session setup)
|
|
// herocoordinator.start()!
|
|
// if herocoordinator.running()! {
|
|
// println('Herocoordinator is running!')
|
|
// }
|
|
// herocoordinator.stop()!
|
|
// herocoordinator.destroy()!
|