infctl-cli/scripts/dev-pre-flight-checks.sh
jon brookes 636a0494ac update: Added Longhorn installation process and updated memory allocation for VMs
update: Added 'git' and 'vagrant' to required tools in pre-flight checks

fix: configured k3s install to use internal nic for flanel network

update: Added Longhorn installation process and updated memory allocation for VMs

update: Added 'git' and 'vagrant' to required tools in pre-flight checks

fix: configured k3s install to use internal nic for flanel network

fix: corrected JSON formatting for config json

update: reduce VM memory allocation to 2GB, add Longhorn installation scripts and prerequisites, and implement checks for existing pods

update: improve error logging in RunJsonDeployment and RunCommand functions

update: add jq installation to provision script

update: add version flag
2025-08-21 11:08:52 +01:00

23 lines
551 B
Bash
Executable file

#!/usr/bin/env bash
required_tools=("infctl" "pwgen" "kubectl" "k3d" "helm" "jq" "git" "docker" "vagrant")
MISSING=false
check_required_tools() {
for tool in "${required_tools[@]}"; do
if ! command -v "$tool" &> /dev/null; then
echo "Error: $tool is not installed. Please install it to continue."
MISSING=true
fi
done
}
check_required_tools
if [ "$MISSING" = true ]; then
echo "Pre-flight checks failed. Please install the missing tools and try again."
exit 1
else
echo "Pre-flight checks have passed."
fi