faas/stack.yml
Eric Stoekl 0bb05480a3 Remove sample functions for swarm
Break out sample functions into new stack.yml
Update instructions in Testdrive.md

Signed-off-by: Eric Stoekl <ems5311@gmail.com>
2018-06-04 19:58:10 -07:00

38 lines
933 B
YAML

provider:
name: faas
gateway: http://localhost:8080 # can be a remote server
functions:
# Pass a username as an argument to find how many images user has pushed to Docker Hub.
hubstats:
lang: dockerfile
image: functions/hubstats:latest
# Node.js gives OS info about the node (Host)
nodeinfo:
lang: dockerfile
image: functions/nodeinfo:latest
# Uses `cat` to echo back response, fastest function to execute.
echoit:
lang: dockerfile
image: functions/alpine:latest
fprocess: "cat"
# Counts words in request with `wc` utility
wordcount:
lang: dockerfile
image: functions/alpine:latest
fprocess: "wc"
# Calculates base64 representation of request body.
base64:
lang: dockerfile
image: functions/alpine:latest
fprocess: "base64"
# Converts body in (markdown format) -> (html)
markdown:
lang: dockerfile
image: functions/markdown-render:latest