Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build Dockerfile failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed #64

Closed
Forest-L opened this issue Oct 9, 2019 · 3 comments

Comments

@Forest-L
Copy link

Forest-L commented Oct 9, 2019

=> ERROR [stage-0 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'github.com/flant/shell-operator/pk 77.4s

[stage-0 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'github.com/flant/shell-operator/pkg/app.Version=latest'" -o shell-operator ./cmd/shell-operator:
#13 24.74 # k8s.io/utils/trace
#13 24.74 /go/src/k8s.io/utils/trace/trace.go:100:57: invalid operation: stepThreshold == 0 || stepDuration > stepThreshold || klog.V(4) (mismatched types bool and klog.Verbose)
#13 24.74 /go/src/k8s.io/utils/trace/trace.go:112:56: invalid operation: stepThreshold == 0 || stepDuration > stepThreshold || klog.V(4) (mismatched types bool and klog.Verbose)
#13 37.42 # k8s.io/client-go/transport
#13 37.42 /go/src/k8s.io/client-go/transport/round_trippers.go:70:11: cannot convert klog.V(9) (type klog.Verbose) to type bool
#13 37.42 /go/src/k8s.io/client-go/transport/round_trippers.go:72:11: cannot convert klog.V(8) (type klog.Verbose) to type bool
#13 37.42 /go/src/k8s.io/client-go/transport/round_trippers.go:74:11: cannot convert klog.V(7) (type klog.Verbose) to type bool
#13 37.42 /go/src/k8s.io/client-go/transport/round_trippers.go:76:11: cannot convert klog.V(6) (type klog.Verbose) to type bool


failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'github.com/flant/shell-operator/pkg/app.Version=$appVersion'" -o shell-operator ./cmd/shell-operator]: buildkit-runc did not terminate sucessfully

@diafour
Copy link
Contributor

diafour commented Oct 10, 2019

It seems that you don't use docker build. What command do you run to build image and what Dockerfile?

@Forest-L
Copy link
Author

docker buildx build . beta5 branch has error.

@diafour
Copy link
Contributor

diafour commented Oct 10, 2019

Ouch. beta.5 has go get in Dockerfile. There was a fix for this: #39.

beta.6 is not ready yet, but you can use master, it is working with old hook configuration format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants