mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Move NodeInfo to 0.6.0 watchdog. Produce ARMHF binaries too
This commit is contained in:
parent
ce8d5838dc
commit
c0cc48b844
@ -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 .
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -t functions/nodeinfo .
|
||||
docker build --squash -t functions/nodeinfo .
|
||||
|
@ -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 .
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user