Files
fn-serverless/examples/hello
Seif Lotfy سيف لطفي 52cab30056 Change PAYLOAD input to STDIN (#111)
* change to iron-io/runner dependency
* Fix runner dependency
* Change PAYLOAD input to STDIN, fixes #40
2016-10-06 18:44:58 -03:00
..
2016-07-19 12:29:02 -07:00
2016-07-19 12:29:02 -07:00
2016-07-19 12:29:02 -07:00
2016-07-19 12:29:02 -07:00
2016-10-06 18:44:58 -03:00
2016-10-06 10:45:33 -07:00
2016-10-06 10:44:27 -07:00
2016-10-06 11:24:50 -07:00

This is a worker that just echoes the "input" param in the payload.

eg:

This input:

{
  "name": "Johnny Utah"
}

Will output:

Hello Johnny Utah!

Try it

echo '{"name":"Johnny"}' | docker run --rm -i iron/hello