Move samples.yml to stack.yml (default) and update references in shell scripts

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2018-02-06 22:04:13 +00:00
parent 9389b4cabe
commit f2e8061d65
8 changed files with 27 additions and 27 deletions

52
stack.yml Normal file
View File

@@ -0,0 +1,52 @@
provider:
name: faas
gateway: http://localhost: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 localhost: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