file-based registry for serialized functions
This commit is contained in:
16
scripts/register.sh
Executable file
16
scripts/register.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
while getopts ":n:f:" opt; do
|
||||
case $opt in
|
||||
n)
|
||||
NAME=$OPTARG
|
||||
;;
|
||||
f)
|
||||
FUNC=$OPTARG
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
java -jar ../spring-cloud-function-core/target/spring-cloud-function-core-1.0.0.BUILD-SNAPSHOT-registrar.jar\
|
||||
$NAME\
|
||||
$FUNC
|
||||
@@ -17,6 +17,4 @@ done
|
||||
java -jar ../spring-cloud-function-stream/target/spring-cloud-function-stream-1.0.0.BUILD-SNAPSHOT.jar\
|
||||
--spring.cloud.stream.bindings.input.destination=$IN\
|
||||
--spring.cloud.stream.bindings.output.destination=$OUT\
|
||||
--function.name=func\
|
||||
--function.code=$FUNC
|
||||
|
||||
--function.name=$FUNC
|
||||
@@ -13,6 +13,5 @@ done
|
||||
|
||||
java -jar ../spring-cloud-function-web/target/spring-cloud-function-web-1.0.0.BUILD-SNAPSHOT.jar\
|
||||
--web.path=$WEBPATH\
|
||||
--function.name=func\
|
||||
--function.code=$FUNC
|
||||
--function.name=$FUNC
|
||||
|
||||
Reference in New Issue
Block a user