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