3 # ============LICENSE_START===============================================
4 # Copyright (C) 2023 Nordix Foundation. All rights reserved.
5 # ========================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=================================================
20 echo "######### Installing NONRTRIC components #########"
22 git clone "https://gerrit.o-ran-sc.org/r/it/dep"
24 ENABLED_SERVICES=(installPms installA1controller installA1simulator installInformationservice)
25 DISABLED_SERVICES=(installControlpanel installRappcatalogueservice installRappcatalogueenhancedservice installNonrtricgateway installKong installDmaapadapterservice installDmaapmediatorservice installHelmmanager installOrufhrecovery installRansliceassurance installRanpm)
27 RECEIPE_FILE="dep/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml"
29 for element in "${ENABLED_SERVICES[@]}"; do
30 echo "Enabling service $element"
31 yq eval ".nonrtric.$element"="true" -i $RECEIPE_FILE
34 for element in "${DISABLED_SERVICES[@]}"; do
35 echo "Disabling service $element"
36 yq eval ".nonrtric.$element"="false" -i $RECEIPE_FILE
39 sudo dep/bin/deploy-nonrtric -f $RECEIPE_FILE
41 while [[ $TIME -lt 2000 ]]; do
42 NONRTRIC_PODS=$(kubectl get pods -n nonrtric --field-selector=status.phase!=Running --no-headers)
43 if [[ -z "$NONRTRIC_PODS" ]]; then
44 echo "All NONRTRIC Components are running."
45 kubectl get pods -n nonrtric
49 echo "Waiting for NONRTRIC Components to be running..."
50 echo "These pods are not running"
52 TIME=$(expr $TIME + 5)
56 echo "NONRTRIC component installation completed..."