mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Fix issue in watchdog - not reading false config overrides.
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
FROM alpine:latest
|
||||
|
||||
ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin
|
||||
ADD https://github.com/alexellis/faas/releases/download/0.5.1-alpha/fwatchdog /usr/bin
|
||||
# COPY ./fwatchdog /usr/bin/
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
# Populate example here
|
||||
# ENV fprocess="wc -l"
|
||||
|
||||
HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1
|
||||
CMD ["fwatchdog"]
|
||||
|
5
sample-functions/AlpineFunction/README.md
Normal file
5
sample-functions/AlpineFunction/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
## AlpineFunction
|
||||
|
||||
This is a base image for Alpine Linux which already has the watchdog added and configured with a healthcheck.
|
||||
|
||||
This image is published on the Docker hub as `functions/alpine`.
|
@ -6,8 +6,8 @@ EXPOSE 8080
|
||||
ENV http_proxy ""
|
||||
ENV https_proxy ""
|
||||
|
||||
# ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin
|
||||
COPY fwatchdog /usr/bin/
|
||||
ADD https://github.com/alexellis/faas/releases/download/0.5.1-alpha/fwatchdog /usr/bin
|
||||
# COPY fwatchdog /usr/bin/
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
COPY app .
|
||||
|
@ -6,7 +6,8 @@ RUN go get -d -v
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||
|
||||
|
||||
ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin
|
||||
ADD https://github.com/alexellis/faas/releases/download/0.5.1-alpha/fwatchdog /usr/bin
|
||||
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
# COPY fwatchdog /usr/bin/
|
||||
|
||||
|
Reference in New Issue
Block a user