From fdd0ef4b27270cb217b6b276d8b48f3efc5c9087 Mon Sep 17 00:00:00 2001 From: Alex <alexellis2@gmail.com> Date: Tue, 28 Mar 2017 19:47:52 +0100 Subject: [PATCH] Build all functions via script, push to 0.5 watchdog --- sample-functions/AlpineFunction/Dockerfile | 2 +- sample-functions/CaptainsIntent/Dockerfile | 2 +- sample-functions/ChangeColorIntent/Dockerfile | 2 +- sample-functions/DockerHubStats/Dockerfile | 2 +- sample-functions/HostnameIntent/Dockerfile | 2 +- sample-functions/MarkdownRender/Dockerfile | 2 +- sample-functions/NodeInfo/Dockerfile | 2 +- sample-functions/WebhookStash/Dockerfile | 2 +- sample-functions/build_all.sh | 16 ++++++++++++++++ sample-functions/catservice/Dockerfile | 2 +- 10 files changed, 25 insertions(+), 9 deletions(-) create mode 100755 sample-functions/build_all.sh diff --git a/sample-functions/AlpineFunction/Dockerfile b/sample-functions/AlpineFunction/Dockerfile index 1c245f48..8ef0a298 100644 --- a/sample-functions/AlpineFunction/Dockerfile +++ b/sample-functions/AlpineFunction/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:latest -ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog # Populate example here diff --git a/sample-functions/CaptainsIntent/Dockerfile b/sample-functions/CaptainsIntent/Dockerfile index 76563499..134a7ba4 100644 --- a/sample-functions/CaptainsIntent/Dockerfile +++ b/sample-functions/CaptainsIntent/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest RUN apk --update add nodejs -ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog COPY package.json . diff --git a/sample-functions/ChangeColorIntent/Dockerfile b/sample-functions/ChangeColorIntent/Dockerfile index 043c82d1..b70b8ebf 100644 --- a/sample-functions/ChangeColorIntent/Dockerfile +++ b/sample-functions/ChangeColorIntent/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest RUN apk --update add nodejs -ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin #COPY ./fwatchdog /usr/bin/ RUN chmod +x /usr/bin/fwatchdog diff --git a/sample-functions/DockerHubStats/Dockerfile b/sample-functions/DockerHubStats/Dockerfile index 7c45dcc6..3f153955 100644 --- a/sample-functions/DockerHubStats/Dockerfile +++ b/sample-functions/DockerHubStats/Dockerfile @@ -8,7 +8,7 @@ COPY . /go/src/github.com/alexellis/faas/sample-functions/DockerHubStats RUN make -ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog ENV fprocess "/go/bin/DockerHubStats" diff --git a/sample-functions/HostnameIntent/Dockerfile b/sample-functions/HostnameIntent/Dockerfile index 32c3963d..bd526a3a 100644 --- a/sample-functions/HostnameIntent/Dockerfile +++ b/sample-functions/HostnameIntent/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest RUN apk --update add nodejs -ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog COPY package.json . diff --git a/sample-functions/MarkdownRender/Dockerfile b/sample-functions/MarkdownRender/Dockerfile index 1ef8f960..8159a82b 100644 --- a/sample-functions/MarkdownRender/Dockerfile +++ b/sample-functions/MarkdownRender/Dockerfile @@ -6,7 +6,7 @@ EXPOSE 8080 ENV http_proxy "" ENV https_proxy "" -ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog # COPY fwatchdog /usr/bin/ diff --git a/sample-functions/NodeInfo/Dockerfile b/sample-functions/NodeInfo/Dockerfile index f14a61cc..78a8c2a3 100644 --- a/sample-functions/NodeInfo/Dockerfile +++ b/sample-functions/NodeInfo/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest RUN apk --update add nodejs -ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog COPY package.json . diff --git a/sample-functions/WebhookStash/Dockerfile b/sample-functions/WebhookStash/Dockerfile index 911eae72..5d2f7504 100644 --- a/sample-functions/WebhookStash/Dockerfile +++ b/sample-functions/WebhookStash/Dockerfile @@ -6,7 +6,7 @@ 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.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog # COPY fwatchdog /usr/bin/ diff --git a/sample-functions/build_all.sh b/sample-functions/build_all.sh new file mode 100755 index 00000000..15bca726 --- /dev/null +++ b/sample-functions/build_all.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +export current=$(pwd) + +for dir in `ls`; +do + test -d "$dir" || continue + cd $dir + echo $dir + + if [ -e ./build.sh ] + then + ./build.sh + fi + cd .. +done diff --git a/sample-functions/catservice/Dockerfile b/sample-functions/catservice/Dockerfile index e91be1ef..871ada90 100644 --- a/sample-functions/catservice/Dockerfile +++ b/sample-functions/catservice/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest ENTRYPOINT [] -ADD https://github.com/alexellis/faas/releases/download/v0.3-alpha/fwatchdog /usr/bin +ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog ENV fprocess "/bin/cat" -- GitLab