forked from openfaas/faas-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yml
55 lines (48 loc) · 1.14 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
44
45
46
47
48
49
50
51
52
53
54
provider:
name: openfaas
gateway: http://127.0.0.1:8080 # can be a remote server
## Note for Kubernetes memory specifications:
## Run: `sed -ie s/40m/40Mi/g stack.yml`
functions:
url-ping:
lang: python
handler: ./sample/url-ping
image: ${DOCKER_USER:-alexellis}/faas-url-ping:0.2
# limits:
# memory: 40m
# requests:
# memory: 40m
stronghash:
skip_build: true
image: functions/alpine:latest
fprocess: "sha512sum"
# limits:
# memory: 40m
# requests:
# memory: 40m
nodejs-echo:
lang: node
handler: ./sample/nodejs-echo
image: alexellis/faas-nodejs-echo:0.1
# limits:
# memory: 40m
# requests:
# memory: 40m
# curl 127.0.0.1:8080/function/shrink-image --data-binary @big.png > smaller.png
shrink-image:
lang: dockerfile
handler: ./sample/imagemagick
image: functions/resizer:0.1
fprocess: "convert - -resize 50% fd:1"
# limits:
# memory: 40m
# requests:
# memory: 40m
ruby-echo:
lang: ruby
handler: ./sample/ruby-echo
image: alexellis/ruby-echo:0.2
# limits:
# memory: 40m
# requests:
# memory: 40m