Make sure your context is set to default and you are using a demo user. Running in the cloud, in your datacenter, or on your local machine like we’re With the javafn directory containing pom.xml and func.yaml you’ve gotĮverything you need to deploy the function to Fn server. The pom includes the Fn FDK for Java runtime and test libraries your function needs. The Java function init also generates a Maven pom.xml file to build and test your function. cmd–the cmd property is set to the fully qualified name of the functionĬlass and the method that should be invoked when your javafn function is.run_image–the image your function runs in.build_image–the image used to build your function’s image.runtime–the language used for this function.name–Name of your function and directory. schema_version–identifies the version of the schema for this function file.The generated func.yaml file contains metadata about your function andĭeclares a number of properties including: Schema_version : 20180708 name : javafn version : 0.0.1 runtime : java build_image : fnproject/fn-java-fdk-build:jdk11-1.0.100 run_image : fnproject/fn-java-fdk:jre11-1.0.100 cmd : .HelloFunction::handleRequest
0 Comments
Leave a Reply. |