mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Add AlpineFunction to enable override of fprocess without new container
This commit is contained in:
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 .
|
||||
|
Reference in New Issue
Block a user