X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=scripts%2Finstall%2Finstall-nonrtric.sh;h=0ddf398c8de9d518b24a21f176b22515c4bed385;hb=2a90215e5995c56a75880a6e281f85d7caf6cd99;hp=4595f64b28dbf43119168cd41e46cca11bef44b0;hpb=77a08f7b9a97e0c6fcce5729cdcc3c18ea90c002;p=nonrtric%2Fplt%2Frappmanager.git diff --git a/scripts/install/install-nonrtric.sh b/scripts/install/install-nonrtric.sh index 4595f64..0ddf398 100755 --- a/scripts/install/install-nonrtric.sh +++ b/scripts/install/install-nonrtric.sh @@ -2,7 +2,7 @@ # ============LICENSE_START=============================================== # Copyright (C) 2023 Nordix Foundation. All rights reserved. -# Copyright (C) 2023 OpenInfra Foundation Europe. 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. @@ -37,6 +37,19 @@ 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 ".dmeparticipant.dmeparticipant.image.registry"=\"$SNAPSHOT_REPO\" -i $RECEIPE_FILE + yq eval ".dmeparticipant.dmeparticipant.image.tag"=\"$DME_PARTICIPANT_VERSION\" -i $RECEIPE_FILE +fi + sudo dep/bin/deploy-nonrtric -f $RECEIPE_FILE while [[ $TIME -lt 2000 ]]; do