Revise deployment tools to better reflect the repo structure.
[it/dep.git] / bin / deploy-ric-platform
index 0826ba6..a16b67c 100755 (executable)
@@ -52,11 +52,16 @@ fi
 
 ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
 
-for component in $ROOT_DIR/../ric-platform/*/; do
-    # Will print */ if no directories are available
-    . $component/bin/install -f $OVERRIDEYAML
+# Start Helm local repo if there isn't one
+HELM_REPO_PID=$(ps -x | grep  "helm serve" | grep -v "grep" | awk '{print $1}')
+if [ -z "$HELM_REPO_PID" ]; then
+    nohup helm serve >& /dev/null &
+fi
+
+$ROOT_DIR/prepare-common-templates
+
+$ROOT_DIR/../ric-dep/bin/install -f $OVERRIDEYAML
 
-done