Add AlpineFunction to enable override of fprocess without new container

This commit is contained in:
Alex Ellis 2017-01-20 18:13:42 +00:00
parent f6bf5a9c92
commit 390dcefb4f
5 changed files with 42 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
FROM alpine:latest
COPY fwatchdog /usr/bin/
# Populate example here
# ENV fprocess="wc -l"
CMD ["fwatchdog"]

View File

@ -0,0 +1,3 @@
#!/bin/bash
docker build -t alexellis2/faas-alpinefunction .

View File

@ -0,0 +1,7 @@
FROM alexellis2/faas-alpinefunction
COPY fwatchdog /usr/bin/
# Populate example here
ENV fprocess="wc -l"
CMD ["fwatchdog"]

View File

@ -0,0 +1,4 @@
#!/bin/bash
docker build -t alexellis2/faas-wordcount:latest .