@_xtribe/cli 1.0.0-beta.7 → 1.0.0-beta.9
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 +19 -5
- package/package.json +1 -1
package/install-tribe.js
CHANGED
|
@@ -476,7 +476,8 @@ async function startContainerRuntime() {
|
|
|
476
476
|
try {
|
|
477
477
|
// Strategy 1: Quick start with minimal resources and Kubernetes
|
|
478
478
|
spinner.text = 'Starting Colima with Kubernetes...';
|
|
479
|
-
|
|
479
|
+
const colimaPath = path.join(binDir, 'colima');
|
|
480
|
+
execSync(`${colimaPath} start --cpu 2 --memory 4 --disk 10 --kubernetes --vm-type=vz`, {
|
|
480
481
|
stdio: 'pipe',
|
|
481
482
|
timeout: 60000 // 60 second timeout for K8s
|
|
482
483
|
});
|
|
@@ -601,7 +602,8 @@ async function checkClusterExists() {
|
|
|
601
602
|
|
|
602
603
|
async function checkColimaRunning() {
|
|
603
604
|
try {
|
|
604
|
-
|
|
605
|
+
const colimaPath = path.join(binDir, 'colima');
|
|
606
|
+
execSync(`${colimaPath} status`, { stdio: 'ignore' });
|
|
605
607
|
return true;
|
|
606
608
|
} catch {
|
|
607
609
|
return false;
|
|
@@ -620,7 +622,8 @@ async function startColimaWithKubernetes() {
|
|
|
620
622
|
|
|
621
623
|
// Start Colima with Kubernetes enabled
|
|
622
624
|
spinner.text = 'Starting Colima (this may take a few minutes on first run)...';
|
|
623
|
-
|
|
625
|
+
const colimaPath = path.join(binDir, 'colima');
|
|
626
|
+
execSync(`${colimaPath} start --kubernetes --cpu 4 --memory 8 --disk 20`, {
|
|
624
627
|
stdio: 'pipe',
|
|
625
628
|
env: { ...process.env, PATH: `${binDir}:${process.env.PATH}` }
|
|
626
629
|
});
|
|
@@ -674,8 +677,8 @@ async function deployTribeCluster() {
|
|
|
674
677
|
TRIBE_DEPLOYMENT_YAML: destYaml
|
|
675
678
|
};
|
|
676
679
|
|
|
677
|
-
// Execute tribe start
|
|
678
|
-
execSync(`${tribePath} start`, {
|
|
680
|
+
// Execute tribe start without validation (services need time to start)
|
|
681
|
+
execSync(`${tribePath} start --validate=false`, {
|
|
679
682
|
stdio: 'pipe',
|
|
680
683
|
env: env
|
|
681
684
|
});
|
|
@@ -684,6 +687,7 @@ async function deployTribeCluster() {
|
|
|
684
687
|
fs.writeFileSync(deploymentMarker, new Date().toISOString());
|
|
685
688
|
|
|
686
689
|
spinner.succeed('TRIBE cluster deployed successfully');
|
|
690
|
+
log.info('Services are starting up. Check status with: tribe status');
|
|
687
691
|
return true;
|
|
688
692
|
} catch (error) {
|
|
689
693
|
spinner.fail('Failed to deploy TRIBE cluster');
|
|
@@ -773,6 +777,16 @@ async function main() {
|
|
|
773
777
|
if (deployed) {
|
|
774
778
|
console.log('\n' + chalk.bold.green('✨ TRIBE is ready!'));
|
|
775
779
|
console.log('');
|
|
780
|
+
|
|
781
|
+
// Check if PATH needs updating
|
|
782
|
+
const needsPathUpdate = !process.env.PATH.includes(binDir);
|
|
783
|
+
if (needsPathUpdate) {
|
|
784
|
+
log.warning('PATH update required for current shell:');
|
|
785
|
+
console.log(chalk.yellow(` source ~/.${process.env.SHELL?.includes('zsh') ? 'zshrc' : 'bashrc'}`));
|
|
786
|
+
console.log(' ' + chalk.gray('or restart your terminal'));
|
|
787
|
+
console.log('');
|
|
788
|
+
}
|
|
789
|
+
|
|
776
790
|
log.info('Quick start:');
|
|
777
791
|
console.log(' tribe # Launch interactive CLI');
|
|
778
792
|
console.log(' tribe status # Check cluster status');
|