@_xtribe/cli 1.0.0-beta.6 → 1.0.0-beta.7
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 +11 -15
- 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) {
|
|
@@ -726,10 +726,7 @@ async function main() {
|
|
|
726
726
|
await updatePath();
|
|
727
727
|
|
|
728
728
|
const tasks = [
|
|
729
|
-
{ name: 'Docker CLI', fn: installDocker },
|
|
730
729
|
{ name: 'Colima', fn: installColima },
|
|
731
|
-
{ name: 'Lima', fn: installLima },
|
|
732
|
-
{ name: 'KIND', fn: installKind },
|
|
733
730
|
{ name: 'kubectl', fn: installKubectl },
|
|
734
731
|
{ name: 'TRIBE CLI', fn: installTribeCli }
|
|
735
732
|
];
|
|
@@ -839,9 +836,8 @@ if (require.main === module) {
|
|
|
839
836
|
console.log(' --help, -h Show this help message');
|
|
840
837
|
console.log(' --verify Only verify existing installation');
|
|
841
838
|
console.log(' --dry-run Show what would be installed');
|
|
842
|
-
|
|
843
|
-
console.log('•
|
|
844
|
-
console.log('• KIND (Kubernetes in Docker)');
|
|
839
|
+
console.log('\nThis installer sets up the complete TRIBE development environment:');
|
|
840
|
+
console.log('• Colima (Container runtime with Kubernetes)');
|
|
845
841
|
console.log('• kubectl (Kubernetes CLI)');
|
|
846
842
|
console.log('• TRIBE CLI (Multi-agent orchestration)');
|
|
847
843
|
console.log('\nAfter installation:');
|
|
@@ -866,7 +862,7 @@ if (require.main === module) {
|
|
|
866
862
|
console.log('• Docker CLI (if not present)');
|
|
867
863
|
console.log('• Colima container runtime (macOS only)');
|
|
868
864
|
console.log('• Lima virtualization (macOS only)');
|
|
869
|
-
|
|
865
|
+
console.log('• Colima - Container runtime with Kubernetes');
|
|
870
866
|
console.log('• kubectl - Kubernetes CLI');
|
|
871
867
|
console.log('• TRIBE CLI - Multi-agent system');
|
|
872
868
|
process.exit(0);
|