Move NodeInfo to 0.6.0 watchdog. Produce ARMHF binaries too

This commit is contained in:
Alex 2017-08-08 09:23:55 +01:00
parent ce8d5838dc
commit c0cc48b844
4 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
FROM alpine:latest
RUN apk --update add nodejs
ADD https://github.com/alexellis/faas/releases/download/0.5.6-alpha/fwatchdog /usr/bin
ADD https://github.com/alexellis/faas/releases/download/0.6.0/fwatchdog /usr/bin
RUN chmod +x /usr/bin/fwatchdog
COPY package.json .

View File

@ -1,3 +1,3 @@
#!/bin/bash
docker build -t functions/nodeinfo .
docker build --squash -t functions/nodeinfo .

View File

@ -9,5 +9,7 @@ COPY requesthandler_test.go .
COPY types types
RUN go test
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o watchdog .
RUN GOARM=6 GOARCH=arm CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o watchdog-armhf .

View File

@ -12,4 +12,6 @@ fi
docker create --name buildoutput functions/watchdog:build echo
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog ./fwatchdog
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog-armhf ./fwatchdog-armhf
docker rm buildoutput