X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=bin%2Fdeploy-ric-platform;h=1d2f837b7470d9a6c0e0d48410e76ca4709fa413;hb=e4d2f4b90f4045519b1957b37416e163a3079da7;hp=0826ba6a0b78e7208eb8e2af68c42b8325aa8577;hpb=9c381477a3319e5dff968b1a4e8566c71499b3b6;p=it%2Fdep.git diff --git a/bin/deploy-ric-platform b/bin/deploy-ric-platform index 0826ba6a..1d2f837b 100755 --- a/bin/deploy-ric-platform +++ b/bin/deploy-ric-platform @@ -52,11 +52,28 @@ 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 + +# Package ric-common and serve it using Helm local repo +HELM_HOME=$(helm home) +COMMON_CHART_VERSION=$(cat $ROOT_DIR/../ric-common/Common-Template/helm/ric-common/Chart.yaml | grep version | awk '{print $2}') +helm package -d /tmp $ROOT_DIR/../ric-common/Common-Template/helm/ric-common +cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $HELM_HOME/repository/local/ +helm repo index $HELM_HOME/repository/local/ + + +# Make sure that helm local repo is added +helm repo remove local +helm repo add local http://127.0.0.1:8879/charts + + + +$ROOT_DIR/../ric-dep/bin/install -f $OVERRIDEYAML -done