@_xtribe/cli 1.0.0-beta.6 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install-tribe.js +14 -17
- package/package.json +1 -1
package/install-tribe.js
CHANGED
|
@@ -474,11 +474,11 @@ async function startContainerRuntime() {
|
|
|
474
474
|
const spinner = ora('Starting Colima container runtime...').start();
|
|
475
475
|
|
|
476
476
|
try {
|
|
477
|
-
// Strategy 1: Quick start with minimal resources
|
|
478
|
-
spinner.text = 'Starting Colima
|
|
479
|
-
execSync('colima start --cpu
|
|
477
|
+
// Strategy 1: Quick start with minimal resources and Kubernetes
|
|
478
|
+
spinner.text = 'Starting Colima with Kubernetes...';
|
|
479
|
+
execSync('colima start --cpu 2 --memory 4 --disk 10 --kubernetes --vm-type=vz', {
|
|
480
480
|
stdio: 'pipe',
|
|
481
|
-
timeout:
|
|
481
|
+
timeout: 60000 // 60 second timeout for K8s
|
|
482
482
|
});
|
|
483
483
|
|
|
484
484
|
// Test if it worked
|
|
@@ -487,10 +487,10 @@ async function startContainerRuntime() {
|
|
|
487
487
|
return true;
|
|
488
488
|
|
|
489
489
|
} catch (error) {
|
|
490
|
-
// Strategy 2: Start in background
|
|
490
|
+
// Strategy 2: Start in background with Kubernetes
|
|
491
491
|
try {
|
|
492
|
-
spinner.text = 'Starting Colima in background...';
|
|
493
|
-
const child = spawn(path.join(binDir, 'colima'), ['start', '--cpu', '2', '--memory', '4'], {
|
|
492
|
+
spinner.text = 'Starting Colima with Kubernetes in background...';
|
|
493
|
+
const child = spawn(path.join(binDir, 'colima'), ['start', '--cpu', '2', '--memory', '4', '--disk', '10', '--kubernetes'], {
|
|
494
494
|
detached: true,
|
|
495
495
|
stdio: 'ignore',
|
|
496
496
|
env: { ...process.env, PATH: `${binDir}:${process.env.PATH}` }
|
|
@@ -552,7 +552,7 @@ async function updatePath() {
|
|
|
552
552
|
async function verifyInstallation() {
|
|
553
553
|
const spinner = ora('Verifying installation...').start();
|
|
554
554
|
|
|
555
|
-
const tools = ['docker', '
|
|
555
|
+
const tools = ['docker', 'kubectl', 'tribe', 'colima'];
|
|
556
556
|
const results = {};
|
|
557
557
|
|
|
558
558
|
for (const tool of tools) {
|
|
@@ -674,8 +674,8 @@ async function deployTribeCluster() {
|
|
|
674
674
|
TRIBE_DEPLOYMENT_YAML: destYaml
|
|
675
675
|
};
|
|
676
676
|
|
|
677
|
-
// Execute tribe start
|
|
678
|
-
execSync(`${tribePath} start`, {
|
|
677
|
+
// Execute tribe start without validation (services need time to start)
|
|
678
|
+
execSync(`${tribePath} start --validate=false`, {
|
|
679
679
|
stdio: 'pipe',
|
|
680
680
|
env: env
|
|
681
681
|
});
|
|
@@ -684,6 +684,7 @@ async function deployTribeCluster() {
|
|
|
684
684
|
fs.writeFileSync(deploymentMarker, new Date().toISOString());
|
|
685
685
|
|
|
686
686
|
spinner.succeed('TRIBE cluster deployed successfully');
|
|
687
|
+
log.info('Services are starting up. Check status with: tribe status');
|
|
687
688
|
return true;
|
|
688
689
|
} catch (error) {
|
|
689
690
|
spinner.fail('Failed to deploy TRIBE cluster');
|
|
@@ -726,10 +727,7 @@ async function main() {
|
|
|
726
727
|
await updatePath();
|
|
727
728
|
|
|
728
729
|
const tasks = [
|
|
729
|
-
{ name: 'Docker CLI', fn: installDocker },
|
|
730
730
|
{ name: 'Colima', fn: installColima },
|
|
731
|
-
{ name: 'Lima', fn: installLima },
|
|
732
|
-
{ name: 'KIND', fn: installKind },
|
|
733
731
|
{ name: 'kubectl', fn: installKubectl },
|
|
734
732
|
{ name: 'TRIBE CLI', fn: installTribeCli }
|
|
735
733
|
];
|
|
@@ -839,9 +837,8 @@ if (require.main === module) {
|
|
|
839
837
|
console.log(' --help, -h Show this help message');
|
|
840
838
|
console.log(' --verify Only verify existing installation');
|
|
841
839
|
console.log(' --dry-run Show what would be installed');
|
|
842
|
-
|
|
843
|
-
console.log('•
|
|
844
|
-
console.log('• KIND (Kubernetes in Docker)');
|
|
840
|
+
console.log('\nThis installer sets up the complete TRIBE development environment:');
|
|
841
|
+
console.log('• Colima (Container runtime with Kubernetes)');
|
|
845
842
|
console.log('• kubectl (Kubernetes CLI)');
|
|
846
843
|
console.log('• TRIBE CLI (Multi-agent orchestration)');
|
|
847
844
|
console.log('\nAfter installation:');
|
|
@@ -866,7 +863,7 @@ if (require.main === module) {
|
|
|
866
863
|
console.log('• Docker CLI (if not present)');
|
|
867
864
|
console.log('• Colima container runtime (macOS only)');
|
|
868
865
|
console.log('• Lima virtualization (macOS only)');
|
|
869
|
-
|
|
866
|
+
console.log('• Colima - Container runtime with Kubernetes');
|
|
870
867
|
console.log('• kubectl - Kubernetes CLI');
|
|
871
868
|
console.log('• TRIBE CLI - Multi-agent system');
|
|
872
869
|
process.exit(0);
|