https://knative.dev/docs/install/knative-with-minikube/
cd reverse-function
docker build -t uppercase-function .
and
cd reverse-function
docker build -t reverse-function .
docker run -p8081:8080 uppercase-function:latest
and
docker run -p8082:8080 reverse-function:latest
curl http://localhost:8081/uppercase/abcd
or
curl http://localhost:8082/reverse/abcd
mvnci
or
mvn clean install
riff function create reverse --image $DOCKER_ID/reverse \
-l ./reverse-function \
--artifact reverse-0.0.1-SNAPSHOT.jar \
--invoker java --handler=reverse
riff function create uppercase --image $DOCKER_ID/uppercase \
-l ./uppercase-function \
--artifact uppercase-0.0.1-SNAPSHOT.jar \
--invoker java --handler=uppercase
riff service invoke reverse --text -- -w '\n' -d "text"
riff service invoke uppercase --text -- -w '\n' -d "text"
watch -n 1 kubectl get pods,ksvc,channel,subscription,deploy
riff service create correlator --image projectriff/correlator:s1p2018
riff channel create reverse --cluster-bus stub
riff channel create uppercase --cluster-bus stub
riff channel create replies --cluster-bus stub
riff subscription create reverse-subscription --channel reverse --subscriber reverse --reply-to uppercase
riff subscription create uppercase-subscription --channel uppercase --subscriber uppercase --reply-to replies
riff subscription create correlator-subscription --channel replies --subscriber correlator
riff service invoke correlator /reverse --text -- -d "Spring cloud functions" -v -H "Knative-Blocking-Request:true"
riff service delete correlator
riff channel delete reverse
riff channel delete uppercase
riff channel delete replies
riff subscription delete reverse-subscription
riff subscription delete uppercase-subscription
riff subscription delete correlator-subscription
riff service delete reverse
riff service delete uppercase