@_xtribe/cli 1.0.0-beta.8 → 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 +16 -3
- 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
|
});
|
|
@@ -774,6 +777,16 @@ async function main() {
|
|
|
774
777
|
if (deployed) {
|
|
775
778
|
console.log('\n' + chalk.bold.green('✨ TRIBE is ready!'));
|
|
776
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
|
+
|
|
777
790
|
log.info('Quick start:');
|
|
778
791
|
console.log(' tribe # Launch interactive CLI');
|
|
779
792
|
console.log(' tribe status # Check cluster status');
|