openfaas / nats-queue-worker

Queue-worker for OpenFaaS with NATS Streaming
https://docs.openfaas.com/reference/async/
MIT License
128 stars 59 forks source link

Dockerfile broken for armhf #40

Closed alexellis closed 6 years ago

alexellis commented 6 years ago

A user emailed me to let me know that the latest image for armhf wasn't pushed up to the Hub, I've just run another build and saw this error:

docker build --build-arg http_proxy="" --build-arg https_proxy="" -t openfaas/queue-worker:0.5.2-armhf . -f Dockerfile.armhf
Sending build context to Docker daemon  5.449MB
Step 1/18 : FROM golang:1.9.7-alpine as golang
 ---> 04b7973586e8
Step 2/18 : WORKDIR /go/src/github.com/openfaas/nats-queue-worker
 ---> Using cache
 ---> fa184adc442f
Step 3/18 : COPY vendor     vendor
 ---> Using cache
 ---> 0189eb5714b0
Step 4/18 : COPY handler    handler
 ---> Using cache
 ---> c766896111b9
Step 5/18 : COPY main.go  .
 ---> Using cache
 ---> bf7e017dced1
Step 6/18 : COPY readconfig.go .
 ---> Using cache
 ---> 3b5807be63e5
Step 7/18 : COPY readconfig_test.go .
 ---> Using cache
 ---> e9fa50b00ea4
Step 8/18 : RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
 ---> Running in 49ffbaea8abb
# github.com/openfaas/nats-queue-worker
./main.go:280:8: undefined: AddBasicAuth
The command '/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .' returned a non-zero code: 2
Makefile:12: recipe for target 'ci-armhf-build' failed
make: *** [ci-armhf-build] Error 2

I suspect this is to do with the latest changes in #36 #35

alexellis commented 6 years ago

I've updated this and pushed openfaas/queue-worker:0.5.2-armhf