Grafana不建立 Docker 形象

nukf8bse  于 2022-11-03  发布在  Docker
关注(0)|答案(1)|浏览(197)

我有一个问题,以建立docker图像为grafana.我试图建立与make build-docker-full-ubuntu的图像,但当go是建立有一个错误,过程退出的错误:

go: downloading github.com/pmezard/go-difflib v1.0.0
generate go files
/go/bin/wire-v0.5.0 gen -tags "oss" ./pkg/server ./pkg/cmd/grafana-cli/runner
wire: github.com/grafana/grafana/pkg/server: wrote /src/grafana/pkg/server/wire_gen.go
wire: github.com/grafana/grafana/pkg/cmd/grafana-cli/runner: wrote /src/grafana/pkg/cmd/grafana-cli/runner/wire_gen.go
build go files
go run build.go   build
Version: 9.0.7, Linux Version: 9.0.7, Package Iteration: 1660317595
building binaries build
building grafana-server ./pkg/cmd/grafana-server
rm -r ./bin/linux-amd64/grafana-server
rm -r ./bin/linux-amd64/grafana-server.md5
go build -ldflags -w -X main.version=9.0.7 -X main.commit=unknown-dev -X main.buildstamp=1660317595 -X main.buildBranch=main -o ./bin/linux-amd64/grafana-server ./pkg/cmd/grafana-server
embed.go:9:20: pattern cue: no matching files found
exit status 1
exit status 1
make:***[Makefile:92: build-go] Error 1
The command '/bin/sh -c make build-go' returned a non-zero code: 2
make:***[Makefile:157: build-docker-full-ubuntu] Errore 2

外部构建go正确构建,但在映像构建器中失败。
有人能帮我吗?
我用的是ubuntu20.04e,grafana的版本是9.0.7
谢谢你的建议

y0u0uwnf

y0u0uwnf1#

this is delayed but this might help someone. just elaborating on the resolved comment. Need to copy the cue folder from the source to the docker add this line in DockerFile

- COPY cue cue

相关问题