Env variable for chart museum and documentation updated.
Issue-ID: NONRTRIC-984
Change-Id: I2ec1eb60ef3b472ae4a5a85509a927a1b54aa524
Signed-off-by: aravind.est <aravindhan.a@est.tech>
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
-.. Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+.. Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
Installation Guide
==================
+--------------------+--------------------------------------------+----------------------------------------------+
| **Variable Name** | **Description** | **Default Value** |
+--------------------+--------------------------------------------+----------------------------------------------+
-| CHART_REPO_HOST | Address of the chart repository. | \http://IP_ADDRESS:8879/charts |
+| CHART_REPO_GET_URI | URI to get the charts. | \http://IP_ADDRESS:8879/charts |
| | | |
-| | It will be used by Kubernetes participant. | IP_ADDRESS: IP of the host in which |
+| | It will be used by Kubernetes participant | IP_ADDRESS: IP of the host in which |
+| | and sample rApp generator | the installation scripts are running. |
++--------------------+--------------------------------------------+----------------------------------------------+
+| CHART_REPO_POST_URI| URI to upload the charts. | \http://IP_ADDRESS:8879/charts/api/charts |
+| | | |
+| | It will be used by sample rApp generator | IP_ADDRESS: IP of the host in which |
| | | the installation scripts are running. |
+--------------------+--------------------------------------------+----------------------------------------------+
| A1PMS_HOST | Address of the A1PMS. | \http://policymanagementservice.nonrtric:9080|
actor "API User"
participant "rApp Manager"
collections "File System"
+participant "Chartmuseum Server"
participant "ACM Runtime"
participant "DME"
"rApp Manager"->"File System": Store rApp Package
"rApp Manager"->"API User": Create rApp Status
"API User"->"rApp Manager": Prime rApp
+"rApp Manager"->"Chartmuseum Server": Upload helm charts
+"Chartmuseum Server"->"rApp Manager": Upload helm charts Status
"rApp Manager"->"ACM Runtime": Create ACM composition
"ACM Runtime"->"rApp Manager": Create ACM composition Status
"rApp Manager"->"ACM Runtime": Prime ACM composition
K8S_VERSIONS_FILE="docker/compose/get-k8s-versions.sh"
KAFKA_DIR="docker/helm/cp-kafka"
-IP_ADDRESS=$(hostname -I | awk '{print $1}')
+IP_ADDRESS=$(hostname -I | sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 | awk '{print $1}')
echo "IP Address : $IP_ADDRESS"
A1PMS_HOST=${A1PMS_HOST:-http://policymanagementservice.nonrtric:9080}
-CHART_REPO_HOST=${CHART_REPO_HOST:-'http://'$IP_ADDRESS':8879/charts'}
+CHART_REPO_GET_URI=${CHART_REPO_GET_URI:-'http://'$IP_ADDRESS':8879/charts'}
function wait_for_pods_to_be_running() {
while [[ $TIME -lt 2000 ]]; do
yq eval '.a1pms.baseUrl="'$A1PMS_HOST'"' -i $A1PMS_CONFIGURATION_FILE
echo "Updating the k8s participant repo list"
-yq eval '.repoList.helm.repos += {"repoName":"local","address":"'$CHART_REPO_HOST'"}' -i $K8S_CONFIGURATION_FILE
+yq eval '.repoList.helm.repos += {"repoName":"local","address":"'$CHART_REPO_GET_URI'"}' -i $K8S_CONFIGURATION_FILE
echo "Building policy helm charts..."
helm dependency build docker/helm/policy/