forked from openfaas/faas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yml
43 lines (37 loc) · 1.03 KB
/
stack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
provider:
name: faas
gateway: http://127.0.0.1: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
skip_build: true
# Node.js gives OS info about the node (Host)
nodeinfo:
lang: dockerfile
image: functions/nodeinfo:latest
skip_build: true
# Uses `cat` to echo back response, fastest function to execute.
echoit:
lang: dockerfile
image: functions/alpine:latest
fprocess: "cat"
skip_build: true
# Counts words in request with `wc` utility
wordcount:
lang: dockerfile
image: functions/alpine:latest
fprocess: "wc"
skip_build: true
# Calculates base64 representation of request body.
base64:
lang: dockerfile
image: functions/alpine:latest
fprocess: "base64"
skip_build: true
# Converts body in (markdown format) -> (html)
markdown:
lang: dockerfile
image: functions/markdown-render:latest
skip_build: true