mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Added hello-go example to make example image faster.
This commit is contained in:
23
examples/hello-ruby/README.md
Normal file
23
examples/hello-ruby/README.md
Normal file
@@ -0,0 +1,23 @@
|
||||
This is a worker that just echoes the "input" param in the payload.
|
||||
|
||||
eg:
|
||||
|
||||
This input:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "Johnny Utah"
|
||||
}
|
||||
```
|
||||
|
||||
Will output:
|
||||
|
||||
```
|
||||
Hello Johnny Utah!
|
||||
```
|
||||
|
||||
## Try it
|
||||
|
||||
```
|
||||
echo '{"name":"Johnny"}' | docker run --rm -i iron/hello
|
||||
```
|
||||
Reference in New Issue
Block a user