From 59434ccf30f28c7a92f6915693b0d36eafd6aacc Mon Sep 17 00:00:00 2001 From: Hanzla Mateen Date: Tue, 3 Oct 2023 08:25:07 +0500 Subject: [PATCH] Added logs to print configuration variables of script (#160) --- assets/scripts/configure-microk8s-linux.sh | 12 +++++++++++- assets/scripts/configure-microk8s-windows.ps1 | 12 +++++++++++- assets/scripts/configure-minikube-linux.sh | 12 +++++++++++- release/app/package.json | 2 +- 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/assets/scripts/configure-microk8s-linux.sh b/assets/scripts/configure-microk8s-linux.sh index af00dd2c..bd70ba5f 100755 --- a/assets/scripts/configure-microk8s-linux.sh +++ b/assets/scripts/configure-microk8s-linux.sh @@ -38,6 +38,16 @@ if [[ -z $ASSETS_FOLDER || -z $CONFIGS_FOLDER || -z $FORCE_DB_REFRESH || -z $ENG exit 1 fi +echo "Starting Ethereal Engine configuration for MicroK8s" + +echo "Cluster ID: ${CLUSTER_ID}" +echo "Force DB Refresh: ${FORCE_DB_REFRESH}" +echo "Enable Ripple Stack: ${ENABLE_RIPPLE_STACK}" +echo "Engine Folder: ${ENGINE_FOLDER}" +echo "OPS Folder: ${OPS_FOLDER}" +echo "Assets Folder: ${ASSETS_FOLDER}" +echo "Configs Folder: ${CONFIGS_FOLDER}" + #================================ # Set script directory as current # Ref: https://stackoverflow.com/a/64168461/2077741 @@ -289,6 +299,6 @@ bash "$SCRIPTS_FOLDER/check-engine-deployment.sh" "$ENGINE_FOLDER" "$FORCE_DB_RE checkExitCode -echo "All Done" +echo "All Configurations Completed" exit 0 diff --git a/assets/scripts/configure-microk8s-windows.ps1 b/assets/scripts/configure-microk8s-windows.ps1 index ba8b0555..ef19cc3a 100644 --- a/assets/scripts/configure-microk8s-windows.ps1 +++ b/assets/scripts/configure-microk8s-windows.ps1 @@ -79,6 +79,16 @@ if ([string]::IsNullOrEmpty($ASSETS_FOLDER) -or exit 1 } +Write-Host "Starting Ethereal Engine configuration for MicroK8s in WSL"; + +Write-Host "Cluster ID: $CLUSTER_ID"; +Write-Host "Force DB Refresh: $FORCE_DB_REFRESH"; +Write-Host "Enable Ripple Stack: $ENABLE_RIPPLE_STACK"; +Write-Host "Engine Folder: $ENGINE_FOLDER"; +Write-Host "OPS Folder: $OPS_FOLDER"; +Write-Host "Configs Folder: $CONFIGS_FOLDER"; +Write-Host "Assets Folder: $ASSETS_FOLDER"; + #============== # Prerequisites #============== @@ -406,6 +416,6 @@ wsl bash -ic "`"$SCRIPTS_FOLDER/check-engine-deployment.sh`" `"$ENGINE_FOLDER`" checkExitCode; -Write-Host "All Done"; +Write-Host "All Configurations Completed"; exit 0; diff --git a/assets/scripts/configure-minikube-linux.sh b/assets/scripts/configure-minikube-linux.sh index abf8807d..2bb4ba0a 100755 --- a/assets/scripts/configure-minikube-linux.sh +++ b/assets/scripts/configure-minikube-linux.sh @@ -37,6 +37,16 @@ if [[ -z $ASSETS_FOLDER || -z $CONFIGS_FOLDER || -z $FORCE_DB_REFRESH || -z $ENG exit 1 fi +echo "Starting Ethereal Engine configuration for MiniKube" + +echo "Cluster ID: ${CLUSTER_ID}" +echo "Force DB Refresh: ${FORCE_DB_REFRESH}" +echo "Enable Ripple Stack: ${ENABLE_RIPPLE_STACK}" +echo "Engine Folder: ${ENGINE_FOLDER}" +echo "OPS Folder: ${OPS_FOLDER}" +echo "Configs Folder: ${CONFIGS_FOLDER}" +echo "Assets Folder: ${ASSETS_FOLDER}" + #================================ # Set script directory as current # Ref: https://stackoverflow.com/a/64168461/2077741 @@ -308,6 +318,6 @@ bash "$SCRIPTS_FOLDER/check-engine-deployment.sh" "$ENGINE_FOLDER" "$FORCE_DB_RE checkExitCode -echo "All Done" +echo "All Configurations Completed" exit 0 diff --git a/release/app/package.json b/release/app/package.json index dd746771..3956d18f 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,6 +1,6 @@ { "name": "etherealengine-control-center", - "version": "0.4.1", + "version": "0.4.2", "description": "A desktop app for managing Ethereal Engine cluster.", "license": "MIT", "author": {