added launch scripts
This commit is contained in:
22
scripts/stream.fun
Executable file
22
scripts/stream.fun
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
while getopts ":i:f:o:" opt; do
|
||||
case $opt in
|
||||
i)
|
||||
IN=$OPTARG
|
||||
;;
|
||||
f)
|
||||
FUNC=$OPTARG
|
||||
;;
|
||||
o)
|
||||
OUT=$OPTARG
|
||||
;;
|
||||
esac
|
||||
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
|
||||
|
||||
18
scripts/web.fun
Executable file
18
scripts/web.fun
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
while getopts ":p:f:" opt; do
|
||||
case $opt in
|
||||
p)
|
||||
WEBPATH=$OPTARG
|
||||
;;
|
||||
f)
|
||||
FUNC=$OPTARG
|
||||
;;
|
||||
esac
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user