From: aravind.est Date: Thu, 25 Jan 2024 19:32:36 +0000 (+0000) Subject: Add installation mode to use snapshot image X-Git-Tag: 0.1.0~36^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F12462%2F2;p=nonrtric%2Fplt%2Frappmanager.git Add installation mode to use snapshot image Installation mode dev added to use the snapshot images for rApp Manager and DME Participant. Issue-ID: NONRTRIC-930 Signed-off-by: aravind.est Change-Id: Ibb3bc6978e6ec7f1bb3bc448d54b52632fe7dc39 --- diff --git a/scripts/install/README.md b/scripts/install/README.md index 5f7f3bf..3862e13 100755 --- a/scripts/install/README.md +++ b/scripts/install/README.md @@ -15,10 +15,12 @@ The installation scripts do not handle the required installations listed below. ### Installation +> **"dev"** mode installation can be used to deploy snapshot images of rApp Manager and DME Participant. +To initiate the dev mode installation, provide "dev" as an argument when executing the script. + All the components can be installed as shown below, -``` -./install-all.sh -``` + +```./install-all.sh``` (or) ```./install-all.sh dev``` Individual components can be installed using the commands below, @@ -28,7 +30,7 @@ Individual components can be installed using the commands below, ```./install-kserve.sh``` - Installs the Kserve, and it's related components. -```./install-nonrtric.sh``` - Installs the NONRTRIC components. +```./install-nonrtric.sh``` or ```./install-nonrtric.sh dev``` - Installs the NONRTRIC components. > **These scripts are specifically designed for a fresh environment.** diff --git a/scripts/install/install-all.sh b/scripts/install/install-all.sh index a3a7ee6..a8c518a 100755 --- a/scripts/install/install-all.sh +++ b/scripts/install/install-all.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. @@ -26,7 +26,7 @@ echo "Installing Kserve components..." ./install-kserve.sh echo "Installing NONRTRIC components..." -./install-nonrtric.sh +./install-nonrtric.sh "$@" echo "Installing ACM components..." ./install-acm.sh 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