mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
Sample-functions: Get watchdog using curl instead of ADD - armhf
Convert all sample-functions to use curl to get the watchdog as it can be cached by Docker. Issue #841 Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
This commit is contained in:
parent
cdbd25c0fb
commit
c28747890c
@ -1,7 +1,8 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
|
|
||||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf /usr/bin/fwatchdog
|
RUN apk --no-cache add curl \
|
||||||
RUN chmod +x /usr/bin/fwatchdog
|
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf > /usr/bin/fwatchdog \
|
||||||
|
&& chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
# Populate example here
|
# Populate example here
|
||||||
# ENV fprocess="wc -l"
|
# ENV fprocess="wc -l"
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
RUN apk --no-cache add nodejs nodejs-npm
|
RUN apk --no-cache add nodejs nodejs-npm
|
||||||
|
|
||||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf /usr/bin/fwatchdog
|
RUN apk --no-cache add curl \
|
||||||
RUN chmod +x /usr/bin/fwatchdog
|
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf > /usr/bin/fwatchdog \
|
||||||
|
&& chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY main.js .
|
COPY main.js .
|
||||||
|
@ -2,8 +2,9 @@ FROM arm32v6/alpine:3.7
|
|||||||
|
|
||||||
RUN apk --no-cache add imagemagick
|
RUN apk --no-cache add imagemagick
|
||||||
|
|
||||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf /usr/bin/fwatchdog
|
RUN apk --no-cache add curl \
|
||||||
RUN chmod +x /usr/bin/fwatchdog
|
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf > /usr/bin/fwatchdog \
|
||||||
|
&& chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
ENV fprocess "convert - -resize 50% fd:1"
|
ENV fprocess "convert - -resize 50% fd:1"
|
||||||
|
|
||||||
|
@ -3,8 +3,10 @@ FROM arm32v7/python:2.7-slim
|
|||||||
RUN pip install textblob && \
|
RUN pip install textblob && \
|
||||||
python -m textblob.download_corpora
|
python -m textblob.download_corpora
|
||||||
|
|
||||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf /usr/bin/fwatchdog
|
RUN apt-get update && apt-get install -y curl \
|
||||||
RUN chmod +x /usr/bin/fwatchdog
|
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf > /usr/bin/fwatchdog \
|
||||||
|
&& chmod +x /usr/bin/fwatchdog \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
|
|
||||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf /usr/bin/fwatchdog
|
RUN apk --no-cache add curl \
|
||||||
RUN chmod +x /usr/bin/fwatchdog
|
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog-armhf > /usr/bin/fwatchdog \
|
||||||
|
&& chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
RUN apk add --no-cache figlet
|
RUN apk add --no-cache figlet
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user