faas icon indicating copy to clipboard operation
faas copied to clipboard

Feature Request : FaaS Exec helper

Open SylvainDeaure opened this issue 9 years ago • 3 comments

Ease the use and pipelining of FaaS functions within a shell script.

Expected Behavior

Pipe from and to FaaS function just as with local utils.

Current Behavior

We can curl http://faas... | and | curl -X post -d '$(</dev/stdin)' http://faas but it feels quite clumsy. Maybe a little wrapper script or Go app could help, to pipe from/to a single faas-exec without extraneous switches.

Possible Solution

cat input.txt | faas-exec func1 | faas-exec -extraparam func2 cat input.json | faas-exec func1 | faas-exec func2 (recognizes json and sets header)

Then, chaining FaaS would just be as simple as using core shell utils.

Context

Trying to demo the ease of use of FaaS by running complex stacks (NLP) within Docker containers, but need some transform steps on data before and after. Need an easy way to chain local and FaaS processes.

SylvainDeaure avatar Jun 08 '17 14:06 SylvainDeaure

Did you wan to have a go at the faas-exec? @SylvainDeaure

alexellis avatar Jul 18 '17 19:07 alexellis

Adding label - revisit, will come back to this and close for now. Feel free to re-open and add to the discussion.

alexellis avatar Aug 13 '17 20:08 alexellis

It'd be great if you fancied working on this or putting something together.

alexellis avatar Aug 13 '17 20:08 alexellis