Skip to content

Commit

Permalink
Added logs to print configuration variables of script (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzlamateen committed Oct 3, 2023
1 parent 4190975 commit 59434cc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
12 changes: 11 additions & 1 deletion assets/scripts/configure-microk8s-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
12 changes: 11 additions & 1 deletion assets/scripts/configure-microk8s-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
#==============
Expand Down Expand Up @@ -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;
12 changes: 11 additions & 1 deletion assets/scripts/configure-minikube-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 59434cc

Please sign in to comment.