mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
Sample-functions: Get watchdog using curl instead of ADD - amd64
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
817aae34a2
commit
cdbd25c0fb
@ -1,9 +1,8 @@
|
||||
FROM alpine:3.7
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
|
||||
# COPY ./fwatchdog /usr/bin/
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
# Populate example here
|
||||
# ENV fprocess="wc -l"
|
||||
|
@ -1,7 +1,8 @@
|
||||
FROM artemklevtsov/r-alpine:latest
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
@ -1,7 +1,9 @@
|
||||
FROM toricls/gnucobol:latest
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apt-get update && apt-get install -y curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
FROM node:6.9.1-alpine
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
@ -1,7 +1,9 @@
|
||||
FROM microsoft/dotnet:sdk
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apt-get update && apt-get install -y curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
|
||||
|
||||
|
@ -8,8 +8,9 @@ COPY . /go/src/github.com/openfaas/faas/sample-functions/golang
|
||||
|
||||
RUN go install
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
ENV fprocess "/go/bin/golang"
|
||||
HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
|
||||
|
@ -1,7 +1,8 @@
|
||||
FROM openjdk:8u121-jdk-alpine
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
FROM node:6.9.1-alpine
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
WORKDIR /root/
|
||||
|
||||
COPY package.json .
|
||||
|
@ -1,7 +1,8 @@
|
||||
FROM python:2.7-alpine
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
FROM alpine:3.7
|
||||
RUN apk --update add nodejs nodejs-npm
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
COPY package.json .
|
||||
COPY handler.js .
|
||||
|
@ -1,9 +1,9 @@
|
||||
FROM alpine:3.7
|
||||
RUN apk --update add nodejs nodejs-npm
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
#COPY ./fwatchdog /usr/bin/
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
COPY package.json .
|
||||
RUN npm i
|
||||
|
@ -1,8 +1,9 @@
|
||||
FROM alpine:3.7
|
||||
RUN apk --update add nodejs nodejs-npm
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
COPY package.json .
|
||||
COPY handler.js .
|
||||
|
@ -2,8 +2,9 @@ FROM alpine:3.7
|
||||
|
||||
RUN apk --update add nodejs nodejs-npm
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
COPY package.json .
|
||||
COPY main.js .
|
||||
|
@ -1,7 +1,9 @@
|
||||
FROM alexellis2/phantomjs-docker:latest
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apt-get update && apt-get install -y curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
ENV fprocess="phantomjs /dev/stdin"
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
FROM v4tech/imagemagick
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
ENV fprocess "convert - -resize 50% fd:1"
|
||||
|
||||
|
@ -3,8 +3,9 @@ FROM python:2.7-alpine
|
||||
RUN pip install textblob && \
|
||||
python -m textblob.download_corpora
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
FROM alpine:3.7
|
||||
|
||||
ADD https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
RUN apk --no-cache add curl \
|
||||
&& curl -sL https://github.com/openfaas/faas/releases/download/0.9.0/fwatchdog > /usr/bin/fwatchdog \
|
||||
&& chmod +x /usr/bin/fwatchdog
|
||||
|
||||
RUN apk add --no-cache figlet
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user