Skip to content

Commit

Permalink
Update arm templates to use multi-arch watchdog
Browse files Browse the repository at this point in the history
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
  • Loading branch information
burtonr authored and alexellis committed Jun 7, 2019
1 parent ccf3ba6 commit 7e93737
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
11 changes: 5 additions & 6 deletions template/python3-flask-armhf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM openfaas/of-watchdog:0.5.3 as watchdog
FROM armhf/python:3.6-alpine

# Alternatively use ADD https:// (which will not be cached by Docker builder)
RUN apk --no-cache add curl \
&& echo "Pulling watchdog binary from Github." \
&& curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.5.0/of-watchdog-armhf > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog \
&& apk del curl --no-cache
ARG ADDITIONAL_PACKAGE

COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog

RUN apk --no-cache add musl-dev gcc make openssl-dev libffi-dev

Expand Down
10 changes: 4 additions & 6 deletions template/python3-http-armhf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM openfaas/of-watchdog:0.5.3 as watchdog
FROM armhf/python:3.6-alpine

ARG ADDITIONAL_PACKAGE
# Alternatively use ADD https:// (which will not be cached by Docker builder)
RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
&& echo "Pulling watchdog binary from Github." \
&& curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.4.6/of-watchdog-armhf > /usr/bin/fwatchdog \
&& chmod +x /usr/bin/fwatchdog \
&& apk del curl --no-cache

COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog

# Add non root user
RUN addgroup -S app && adduser app -S -G app
Expand Down

0 comments on commit 7e93737

Please sign in to comment.