-
Notifications
You must be signed in to change notification settings - Fork 250
captainkube: docker build fails #44
Comments
Not sure if it's directly related but just found this: google/gnostic#155 |
Definitely looks like related to this: kubernetes/client-go#741 |
How do you specify a version in an import? |
I think if/when this pull request is approved, this should help us out. kubernetes/kubernetes#87802 edit-nvm |
I made it works in this way, by modifying captainkube # Build
FROM golang:1.13.4 as builder
WORKDIR /build
COPY main.go .
RUN GO111MODULE=on; go mod init captainkube && go get k8s.io/client-go@v0.17.2 && go get -d -v
# temporary workaroud for https://github.com/Azure/phippyandfriends/issues/30
#RUN cd $GOPATH/src/k8s.io/klog && git checkout v0.4.0 && cd -
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
# Run
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /build/app .
CMD ["./app"] So, if briefly, change this line: |
Thanks @maximsapiens, you got it! That's indeed fix the issue accordingly. And yes you are right we could now remove the temporary workaround we did there: #31. Thanks for your contribution on this @maximsapiens, @soccerjoshj07 and @howardjones! |
Currently
captainkube
docker build fails with this error:Error: error building at STEP "RUN go get -d -v": error while running runtime: exit status 1
.The last successful build I did was around Jan 20th 2020, looks like one of the dependencies changed?
Here is the complete logs output of the
docker build
command:The error seems to be here?
The text was updated successfully, but these errors were encountered: