Move sample rApp resources to seperate directory 26/11826/2
authoraravind.est <aravindhan.a@est.tech>
Wed, 27 Sep 2023 12:24:58 +0000 (13:24 +0100)
committerAravindhan Ayyanathan <aravindhan.a@est.tech>
Thu, 28 Sep 2023 13:18:55 +0000 (13:18 +0000)
Sample rApp files moved to separate directory.
Generator file added for Windows and Linux environment to generate the rApp csar file.

Issue-ID: NONRTRIC-932
Signed-off-by: aravind.est <aravindhan.a@est.tech>
Change-Id: I8e309da4d52d02afcc2ac66691811ec8313600dd

34 files changed:
csar-generator/generate.bat [new file with mode: 0755]
csar-generator/generate.sh [new file with mode: 0755]
csar-generator/resources/Definitions/asd.yaml [moved from rapp-manager-application/src/main/resources/resource-csar/Definitions/asd.yaml with 100% similarity]
csar-generator/resources/Definitions/asd_types.yaml [moved from rapp-manager-application/src/main/resources/resource-csar/Definitions/asd_types.yaml with 100% similarity]
csar-generator/resources/Files/Acm/definition/compositions.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Acm/definition/compositions.json with 100% similarity]
csar-generator/resources/Files/Acm/instances/a1pms-instance.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Acm/instances/a1pms-instance.json with 100% similarity]
csar-generator/resources/Files/Acm/instances/all-instance.json [new file with mode: 0755]
csar-generator/resources/Files/Acm/instances/k8s-instance.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Acm/instances/k8s-instance.json with 100% similarity]
csar-generator/resources/Files/Acm/instances/kserve-instance.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Acm/instances/kserve-instance.json with 100% similarity]
csar-generator/resources/Files/ChangeLog.txt [moved from rapp-manager-application/src/main/resources/resource-csar/Files/ChangeLog.txt with 100% similarity]
csar-generator/resources/Files/Dme/infoconsumers/json-file-consumer.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Dme/infoconsumers/json-file-consumer.json with 100% similarity]
csar-generator/resources/Files/Dme/infoconsumers/xml-file-consumer.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Dme/infoconsumers/xml-file-consumer.json with 100% similarity]
csar-generator/resources/Files/Dme/infoproducers/json-file-data-producer.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Dme/infoproducers/json-file-data-producer.json with 100% similarity]
csar-generator/resources/Files/Dme/infoproducers/xml-file-data-producer.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Dme/infoproducers/xml-file-data-producer.json with 100% similarity]
csar-generator/resources/Files/Dme/infotypes/json-file-data-from-filestore.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Dme/infotypes/json-file-data-from-filestore.json with 100% similarity]
csar-generator/resources/Files/Dme/infotypes/xml-file-data-from-filestore.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Dme/infotypes/xml-file-data-from-filestore.json with 100% similarity]
csar-generator/resources/Files/Events/MyASD_v1.yaml [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Events/MyASD_v1.yaml with 100% similarity]
csar-generator/resources/Files/Guides/user_guide.txt [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Guides/user_guide.txt with 100% similarity]
csar-generator/resources/Files/Measurements/PM_Dictionary.yaml [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Measurements/PM_Dictionary.yaml with 100% similarity]
csar-generator/resources/Files/Scripts/my_script.sh [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Scripts/my_script.sh with 100% similarity]
csar-generator/resources/Files/Sme/invokers/invoker-app1.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Sme/invokers/invoker-app1.json with 100% similarity]
csar-generator/resources/Files/Sme/invokers/invoker-app2.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Sme/invokers/invoker-app2.json with 100% similarity]
csar-generator/resources/Files/Sme/providers/aef-provider-function.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Sme/providers/aef-provider-function.json with 100% similarity]
csar-generator/resources/Files/Sme/providers/amf-provider-function.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Sme/providers/amf-provider-function.json with 100% similarity]
csar-generator/resources/Files/Sme/providers/apf-provider-function.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Sme/providers/apf-provider-function.json with 100% similarity]
csar-generator/resources/Files/Sme/providers/gateway-provider-function.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Sme/providers/gateway-provider-function.json with 100% similarity]
csar-generator/resources/Files/Sme/serviceapis/api-set-1.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Sme/serviceapis/api-set-1.json with 100% similarity]
csar-generator/resources/Files/Sme/serviceapis/api-set-2.json [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Sme/serviceapis/api-set-2.json with 100% similarity]
csar-generator/resources/Files/Yang_module/mynetconf.yang [moved from rapp-manager-application/src/main/resources/resource-csar/Files/Yang_module/mynetconf.yang with 100% similarity]
csar-generator/resources/Files/rapp1/rapp.zip [moved from rapp-manager-application/src/main/resources/resource-csar/Files/rapp1/rapp.zip with 100% similarity]
csar-generator/resources/HELM/free5gc-1.1.3.tgz [moved from rapp-manager-application/src/main/resources/resource-csar/Artifacts/Deployment/HELM/free5gc-1.1.3.tgz with 100% similarity]
csar-generator/resources/HELM/ueransim-2.0.14.tgz [moved from rapp-manager-application/src/main/resources/resource-csar/Artifacts/Deployment/HELM/ueransim-2.0.14.tgz with 100% similarity]
csar-generator/resources/TOSCA-Metadata/TOSCA.meta [moved from rapp-manager-application/src/main/resources/resource-csar/TOSCA-Metadata/TOSCA.meta with 100% similarity]
csar-generator/resources/asd.mf [moved from rapp-manager-application/src/main/resources/resource-csar/asd.mf with 100% similarity]

diff --git a/csar-generator/generate.bat b/csar-generator/generate.bat
new file mode 100755 (executable)
index 0000000..1e34698
--- /dev/null
@@ -0,0 +1,25 @@
+:: ============LICENSE_START===============================================
+::  Copyright (C) 2023 Nordix Foundation. 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.
+::  You may obtain a copy of the License at
+::
+::       http:\\www.apache.org\licenses\LICENSE-2.0
+::
+::  Unless required by applicable law or agreed to in writing, software
+::  distributed under the License is distributed on an "AS IS" BASIS,
+::  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+::  See the License for the specific language governing permissions and
+::  limitations under the License.
+::  ============LICENSE_END=================================================
+::
+
+@echo off
+SET CSARFILE=rapp.csar
+SET ZIPFILE=rapp.zip
+del %CSARFILE% 2>nul
+pushd resources
+tar -a -cf ..\%ZIPFILE% *
+popd
+rename %ZIPFILE% %CSARFILE%
diff --git a/csar-generator/generate.sh b/csar-generator/generate.sh
new file mode 100755 (executable)
index 0000000..3bb223a
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2023 Nordix Foundation. 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.
+#  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#  ============LICENSE_END=================================================
+#
+
+rm rapp.csar
+pushd resources
+zip -r ../rapp.csar *
+popd
diff --git a/csar-generator/resources/Files/Acm/instances/all-instance.json b/csar-generator/resources/Files/Acm/instances/all-instance.json
new file mode 100755 (executable)
index 0000000..20d9a88
--- /dev/null
@@ -0,0 +1,72 @@
+{
+  "name": "AllInstance0",
+  "version": "1.0.1",
+  "compositionId": "COMPOSITIONID",
+  "description": "Demo automation composition instance",
+  "elements": {
+    "709c62b3-8918-41b9-a747-d21eb79c6c12": {
+      "id": "709c62b3-8918-41b9-a747-d21eb79c6c12",
+      "definition": {
+        "name": "onap.policy.clamp.ac.element.A1PMSAutomationCompositionElement",
+        "version": "1.2.3"
+      },
+      "description": "Starter Automation Composition Element for the Demo",
+      "properties": {
+        "policyServiceEntities": [
+          {
+            "a1PolicyServiceEntityId": {
+              "name": "entity1",
+              "version": "1.0.1"
+            },
+            "clientId": "firstService",
+            "callbackUrl": "http:\\localhost"
+          }
+        ]
+      }
+    },
+    "709c62b3-8918-41b9-a747-d21eb79c6c21": {
+      "id": "709c62b3-8918-41b9-a747-d21eb79c6c21",
+      "definition": {
+        "name": "onap.policy.clamp.ac.element.K8S_StarterAutomationCompositionElement",
+        "version": "1.2.3"
+      },
+      "description": "Starter Automation Composition Element for the Demo",
+      "properties": {
+        "chart": {
+          "chartId": {
+            "name": "ransliceassurance",
+            "version": "1.0.0"
+          },
+          "namespace": "nonrtric",
+          "releaseName": "ransliceassurance",
+          "podName": "ransliceassurance",
+          "repository": {
+            "repoName": "local",
+            "address": "http://10.101.2.41:8879/charts"
+          }
+        }
+      }
+    },
+    "709c62b3-8918-41b9-a747-d21eb79c6c20": {
+      "id": "709c62b3-8918-41b9-a747-d21eb79c6c20",
+      "definition": {
+        "name": "onap.policy.clamp.ac.element.KserveAutomationCompositionElement",
+        "version": "1.2.3"
+      },
+      "description": "Starter Automation Composition Element for the Demo",
+      "properties": {
+        "kserveInferenceEntities": [
+          {
+            "kserveInferenceEntityId": {
+              "name": "entity1",
+              "version": "1.0.1"
+            },
+            "name": "sklearn-iris",
+            "namespace": "kserve-test",
+            "payload": "{\"apiVersion\": \"serving.kserve.io/v1beta1\",\"kind\": \"InferenceService\",\"metadata\": {\"name\": \"sklearn-iris\"},\"spec\": {\"predictor\": {\"model\":{\"modelFormat\": {\"name\": \"sklearn\"},\"storageUri\": \"gs://kfserving-examples/models/sklearn/1.0/model\"}}}}"
+          }
+        ]
+      }
+    }
+  }
+}
\ No newline at end of file