mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 09:16:48 +00:00
Add AlpineFunction to enable override of fprocess without new container
This commit is contained in:
parent
f6bf5a9c92
commit
390dcefb4f
@ -54,6 +54,27 @@ services:
|
||||
no_proxy: "gateway"
|
||||
https_proxy: $https_proxy
|
||||
|
||||
echoit:
|
||||
image: alexellis2/faas-alpinefunction:latest
|
||||
depends_on:
|
||||
- gateway
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
fprocess: "cat"
|
||||
no_proxy: "gateway"
|
||||
https_proxy: $https_proxy
|
||||
|
||||
wordcount:
|
||||
image: alexellis2/faas-alpinefunction:latest
|
||||
depends_on:
|
||||
- gateway
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
fprocess: "wc"
|
||||
no_proxy: "gateway"
|
||||
https_proxy: $https_proxy
|
||||
networks:
|
||||
functions:
|
||||
driver: overlay
|
||||
|
7
sample-functions/AlpineFunction/Dockerfile
Normal file
7
sample-functions/AlpineFunction/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
COPY fwatchdog /usr/bin/
|
||||
|
||||
# Populate example here
|
||||
# ENV fprocess="wc -l"
|
||||
CMD ["fwatchdog"]
|
3
sample-functions/AlpineFunction/build.sh
Executable file
3
sample-functions/AlpineFunction/build.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -t alexellis2/faas-alpinefunction .
|
7
sample-functions/WordCountFunction/Dockerfile
Normal file
7
sample-functions/WordCountFunction/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM alexellis2/faas-alpinefunction
|
||||
|
||||
COPY fwatchdog /usr/bin/
|
||||
|
||||
# Populate example here
|
||||
ENV fprocess="wc -l"
|
||||
CMD ["fwatchdog"]
|
4
sample-functions/WordCountFunction/build.sh
Executable file
4
sample-functions/WordCountFunction/build.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -t alexellis2/faas-wordcount:latest .
|
||||
|
Loading…
x
Reference in New Issue
Block a user