X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=scripts%2Finstall%2Finstall-nonrtric.sh;h=3fc436b3cc3e91993c6087e848f63d5a87580c8c;hb=refs%2Fchanges%2F51%2F12751%2F2;hp=bd66a433c2b723bfe61ce796887da33dbb345091;hpb=c128f98cacc3823b8e01070a2be98720a2b2be7c;p=nonrtric%2Fplt%2Frappmanager.git diff --git a/scripts/install/install-nonrtric.sh b/scripts/install/install-nonrtric.sh index bd66a43..3fc436b 100755 --- a/scripts/install/install-nonrtric.sh +++ b/scripts/install/install-nonrtric.sh @@ -2,6 +2,7 @@ # ============LICENSE_START=============================================== # Copyright (C) 2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,8 +22,8 @@ echo "######### Installing NONRTRIC components #########" git clone "https://gerrit.o-ran-sc.org/r/it/dep" -ENABLED_SERVICES=(installPms installA1controller installA1simulator installInformationservice) -DISABLED_SERVICES=(installControlpanel installRappcatalogueservice installRappcatalogueenhancedservice installNonrtricgateway installKong installDmaapadapterservice installDmaapmediatorservice installHelmmanager installOrufhrecovery installRansliceassurance installRanpm) +ENABLED_SERVICES=(installPms installA1controller installA1simulator installInformationservice installrAppmanager installDmeParticipant installCapifcore installServicemanager installKong) +DISABLED_SERVICES=(installControlpanel installRappcatalogueservice installRappcatalogueenhancedservice installNonrtricgateway installDmaapadapterservice installDmaapmediatorservice installHelmmanager installOrufhrecovery installRansliceassurance installRanpm) RECEIPE_FILE="dep/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml" @@ -36,10 +37,25 @@ for element in "${DISABLED_SERVICES[@]}"; do yq eval ".nonrtric.$element"="false" -i $RECEIPE_FILE done +# Dev mode installation configuration +if [[ "$1" == "dev" ]]; then + SNAPSHOT_REPO='nexus3.o-ran-sc.org:10003/o-ran-sc' + RAPP_MANAGER_VERSION=$(grep -oPm2 "(?<=)[^<]+" "../../pom.xml" | tail -n1) + DME_PARTICIPANT_VERSION=$(grep -oPm2 "(?<=)[^<]+" "../../participants/pom.xml" | tail -n1) + echo "Rapp Manager Version: $RAPP_MANAGER_VERSION" + echo "DME Participant Version: $DME_PARTICIPANT_VERSION" + yq eval ".rappmanager.rappmanager.image.registry"=\"$SNAPSHOT_REPO\" -i $RECEIPE_FILE + yq eval ".rappmanager.rappmanager.image.tag"=\"$RAPP_MANAGER_VERSION\" -i $RECEIPE_FILE + yq eval ".rappmanager.rappmanager.imagePullPolicy=\"Always\"" -i $RECEIPE_FILE + yq eval ".dmeparticipant.dmeparticipant.image.registry"=\"$SNAPSHOT_REPO\" -i $RECEIPE_FILE + yq eval ".dmeparticipant.dmeparticipant.image.tag"=\"$DME_PARTICIPANT_VERSION\" -i $RECEIPE_FILE + yq eval ".dmeparticipant.dmeparticipant.imagePullPolicy=\"Always\"" -i $RECEIPE_FILE +fi + sudo dep/bin/deploy-nonrtric -f $RECEIPE_FILE while [[ $TIME -lt 2000 ]]; do - NONRTRIC_PODS=$(kubectl get pods -n nonrtric --field-selector=status.phase!=Running --no-headers) + NONRTRIC_PODS=$(kubectl get pods -n nonrtric --field-selector=status.phase!=Running,status.phase!=Succeeded --no-headers) if [[ -z "$NONRTRIC_PODS" ]]; then echo "All NONRTRIC Components are running." kubectl get pods -n nonrtric