Add healthcheck to markdown for ARMHF

This commit is contained in:
Alex Ellis
2017-04-30 09:11:34 +00:00
parent cb2608edfb
commit ac9f2fad32
3 changed files with 16 additions and 3 deletions

View File

@ -75,8 +75,6 @@ services:
environment:
no_proxy: "gateway"
https_proxy: $https_proxy
wordcount:
image: functions/alpine:latest-armhf
labels:
@ -89,6 +87,19 @@ services:
fprocess: "wc"
no_proxy: "gateway"
https_proxy: $https_proxy
echoit:
image: functions/alpine:latest-armhf
labels:
function: "true"
depends_on:
- gateway
networks:
- functions
environment:
fprocess: "cat"
no_proxy: "gateway"
https_proxy: $https_proxy
networks:
functions:
driver: overlay

View File

@ -1,6 +1,6 @@
FROM armhf/alpine:3.5
ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog-armhf /usr/bin/fwatchdog
ADD https://github.com/alexellis/faas/releases/download/0.5.4-alpha/fwatchdog-armhf /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
WORKDIR /root/
@ -12,4 +12,6 @@ ENV https_proxy ""
COPY app .
ENV fprocess="/root/app"
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
CMD ["fwatchdog"]