Python lib for RA and component executor 43/79043/6
authorSteve Alphonse Siani <alphonse.steve.siani.djissitchi@ibm.com>
Fri, 22 Feb 2019 21:22:59 +0000 (16:22 -0500)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 13 Mar 2019 13:37:45 +0000 (09:37 -0400)
Change-Id: Iacec0dbbd3e7c1dc955ac913f346365732248f05
Issue-ID: CCSDK-1091
Signed-off-by: Steve Alphonse Siani <alphonse.steve.siani.djissitchi@ibm.com>
components/model-catalog/blueprint-model/test-blueprint/capability_python/Definitions/activation-blueprint.json
components/model-catalog/resource-dictionary/starter-dictionary/service-instance-id.json
ms/blueprintsprocessor/application/src/test/resources/application.properties
ms/blueprintsprocessor/distribution/src/main/docker/Dockerfile

index 168732c..b02397e 100755 (executable)
         "artifacts" : {
           "component-script" : {
             "type" : "artifact-script-jython",
-            "file" : "Scripts/SamplePythonComponentNode.py"
+            "file" : "Scripts/python/SamplePythonComponentNode.py"
           }
         }
       }
index cb97043..737c757 100755 (executable)
           "service-instance-id": "artifact_name"
         }
       }
+    },
+    "capability": {
+      "type": "source-capability",
+      "properties": {
+          "script-type": "jython",
+          "script-class-reference": "SampleRAProcessor",
+          "instance-dependencies": []
+      }
     }
   }
 }
\ No newline at end of file
index 3930245..fc6f729 100644 (file)
@@ -33,8 +33,8 @@ blueprintsprocessor.db.primary.hibernateDDLAuto=update
 blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
 blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
 # Python executor
-blueprints.processor.functions.python.executor.executionPath=/opt/app/onap/scripts/jython
-blueprints.processor.functions.python.executor.modulePaths=/opt/app/onap/scripts/jython
+blueprints.processor.functions.python.executor.executionPath=/opt/app/onap/scripts/jython/ccsdk_blueprints
+blueprints.processor.functions.python.executor.modulePaths=/opt/app/onap/scripts/jython/ccsdk_blueprints
 
 security.user.password: {bcrypt}$2a$10$duaUzVUVW0YPQCSIbGEkQOXwafZGwQ/b32/Ys4R1iwSSawFgz7QNu
 security.user.name: ccsdkapps
index d3e10b7..dab0a4c 100755 (executable)
@@ -1,4 +1,4 @@
-FROM anapsix/alpine-java:8_jdk
+FROM omahoco1/alpine-java-python
 
 ENV HTTP_PROXY  ${HTTP_PROXY}
 ENV HTTPS_PROXY ${HTTPS_PROXY}