mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Add healthcheck to markdown for ARMHF
This commit is contained in:
@ -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
|
||||
|
@ -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"]
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user