Files
faas-cli/stack.yml

53 lines
1.1 KiB
YAML

provider:
name: faas
gateway: http://127.0.0.1:8080 # can be a remote server
network: "func_functions" # this is optional and defaults to func_functions
functions:
url-ping:
lang: python
handler: ./sample/url-ping
image: alexellis/faas-url-ping:0.1
limits:
memory: 10m
requests:
memory: 10m
stronghash:
skip_build: true
image: functions/alpine:latest
fprocess: "sha512sum"
limits:
memory: 10m
requests:
memory: 10m
nodejs-echo:
lang: node
handler: ./sample/nodejs-echo
image: alexellis/faas-nodejs-echo:0.1
limits:
memory: 30m
requests:
memory: 30m
# 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: 20m
requests:
memory: 20m
ruby-echo:
lang: ruby
handler: ./sample/ruby-echo
image: alexellis/ruby-echo:0.1
limits:
memory: 10m
requests:
memory: 10m