diff --git a/sample-functions/AlpineFunction/Dockerfile b/sample-functions/AlpineFunction/Dockerfile index c1546c36..bbb83675 100644 --- a/sample-functions/AlpineFunction/Dockerfile +++ b/sample-functions/AlpineFunction/Dockerfile @@ -1,6 +1,7 @@ FROM alpine:latest -COPY fwatchdog /usr/bin/ +ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin +RUN chmod +x /usr/bin/fwatchdog # Populate example here # ENV fprocess="wc -l" diff --git a/sample-functions/CaptainsIntent/Dockerfile b/sample-functions/CaptainsIntent/Dockerfile index 5e5a08cb..2a96cd1b 100644 --- a/sample-functions/CaptainsIntent/Dockerfile +++ b/sample-functions/CaptainsIntent/Dockerfile @@ -1,6 +1,8 @@ FROM alpine:latest RUN apk --update add nodejs -COPY ./fwatchdog /usr/bin/ + +ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin +RUN chmod +x /usr/bin/fwatchdog COPY package.json . COPY handler.js . diff --git a/sample-functions/ChangeColorIntent/Dockerfile b/sample-functions/ChangeColorIntent/Dockerfile index cbc833c2..54450d36 100644 --- a/sample-functions/ChangeColorIntent/Dockerfile +++ b/sample-functions/ChangeColorIntent/Dockerfile @@ -1,6 +1,8 @@ FROM alpine:latest RUN apk --update add nodejs -COPY ./fwatchdog /usr/bin/ + +ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin +RUN chmod +x /usr/bin/fwatchdog COPY package.json . COPY handler.js . diff --git a/sample-functions/DockerHubStats/Dockerfile b/sample-functions/DockerHubStats/Dockerfile index 6ab0b2bc..7586cc92 100644 --- a/sample-functions/DockerHubStats/Dockerfile +++ b/sample-functions/DockerHubStats/Dockerfile @@ -7,7 +7,10 @@ WORKDIR /go/src/github.com/alexellis/faas/sample-functions/DockerHubStats COPY . /go/src/github.com/alexellis/faas/sample-functions/DockerHubStats RUN make -COPY fwatchdog /usr/bin/fwatchdog + +ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin +RUN chmod +x /usr/bin/fwatchdog + ENV fprocess "/go/bin/DockerHubStats" CMD [ "/usr/bin/fwatchdog"] diff --git a/sample-functions/HostnameIntent/Dockerfile b/sample-functions/HostnameIntent/Dockerfile index 8866b5ff..0c934127 100644 --- a/sample-functions/HostnameIntent/Dockerfile +++ b/sample-functions/HostnameIntent/Dockerfile @@ -1,6 +1,8 @@ FROM alpine:latest RUN apk --update add nodejs -COPY ./fwatchdog /usr/bin/ + +ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin +RUN chmod +x /usr/bin/fwatchdog COPY package.json . COPY handler.js . diff --git a/sample-functions/NodeInfo/Dockerfile b/sample-functions/NodeInfo/Dockerfile index 03a7fcd6..b44946be 100644 --- a/sample-functions/NodeInfo/Dockerfile +++ b/sample-functions/NodeInfo/Dockerfile @@ -1,6 +1,8 @@ FROM alpine:latest RUN apk --update add nodejs -COPY ./fwatchdog /usr/bin/ + +ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin +RUN chmod +x /usr/bin/fwatchdog COPY package.json . COPY main.js . diff --git a/sample-functions/WebhookStash/Dockerfile b/sample-functions/WebhookStash/Dockerfile index fda40f3e..9816f297 100644 --- a/sample-functions/WebhookStash/Dockerfile +++ b/sample-functions/WebhookStash/Dockerfile @@ -5,7 +5,9 @@ WORKDIR /go/src/app RUN go get -d -v RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . -COPY fwatchdog /usr/bin/ +ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin +RUN chmod +x /usr/bin/fwatchdog +# COPY fwatchdog /usr/bin/ ENV fprocess="/go/src/app/app" CMD ["fwatchdog"] diff --git a/sample-functions/catservice/Dockerfile b/sample-functions/catservice/Dockerfile index 30ba1367..24b37abd 100644 --- a/sample-functions/catservice/Dockerfile +++ b/sample-functions/catservice/Dockerfile @@ -1,9 +1,10 @@ FROM alpine:latest ENTRYPOINT [] -COPY ./fwatchdog /usr/bin/fwatchdog -ENV fprocess "cat" +ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin +RUN chmod +x /usr/bin/fwatchdog +ENV fprocess "/bin/cat" EXPOSE 8080 CMD ["/usr/bin/fwatchdog"]