Fix issue in watchdog - not reading false config overrides.

This commit is contained in:
Alex Ellis
2017-04-05 09:06:47 +01:00
committed by Alex Ellis
parent 93bdfba4b2
commit 469fc690da
9 changed files with 80 additions and 16 deletions

View File

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

View 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`.

View File

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

View File

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