mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 20:46:41 +00:00
Add healthcheck to markdown for ARMHF
This commit is contained in:
@ -75,8 +75,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
no_proxy: "gateway"
|
no_proxy: "gateway"
|
||||||
https_proxy: $https_proxy
|
https_proxy: $https_proxy
|
||||||
|
|
||||||
|
|
||||||
wordcount:
|
wordcount:
|
||||||
image: functions/alpine:latest-armhf
|
image: functions/alpine:latest-armhf
|
||||||
labels:
|
labels:
|
||||||
@ -89,6 +87,19 @@ services:
|
|||||||
fprocess: "wc"
|
fprocess: "wc"
|
||||||
no_proxy: "gateway"
|
no_proxy: "gateway"
|
||||||
https_proxy: $https_proxy
|
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:
|
networks:
|
||||||
functions:
|
functions:
|
||||||
driver: overlay
|
driver: overlay
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM armhf/alpine:3.5
|
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
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
@ -12,4 +12,6 @@ ENV https_proxy ""
|
|||||||
COPY app .
|
COPY app .
|
||||||
|
|
||||||
ENV fprocess="/root/app"
|
ENV fprocess="/root/app"
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
|
||||||
CMD ["fwatchdog"]
|
CMD ["fwatchdog"]
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user