-
What Grafana version and what operating system are you using?
-
Grafana 9.4.7 , Mac OS Ventura (Mac M1)
-
What are you trying to achieve?
Build a Docker image of Grafana -
What happened?
Executor failed running – issue with go-builder -
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
Logs:
#25 0.742 go: downloading github.com/bwplotka/bingo v0.8.0
#25 1.094 go: downloading github.com/efficientgo/core v1.0.0-rc.0
#25 1.194 go: downloading golang.org/x/mod v0.5.1
#25 1.298 go: downloading mvdan.cc/sh/v3 v3.4.3
#25 1.344 go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
#25 1.477 go: downloading golang.org/x/sys v0.0.0-20220330033206-e17cdc41300f
#25 1.477 go: downloading golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
#25 1.477 go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
#25 6.565 getting target github.com/unknwon/bra@v0.0.0-20200517080246-1e3013ecaff8 (module github.com/unknwon/bra )
#25 7.386 exec 'go list -modfile=/tmp/grafana/.bingo/bra.tmp.mod -mod=mod -f={{.Name}} github.com/unknwon/bra'
#25 8.348 exec 'go get -modfile=/tmp/grafana/.bingo/bra.tmp.mod -d github.com/unknwon/bra@v0.0.0-20200517080246-1e3013ecaff8'
#25 8.352 exec 'go env GOBIN'
#25 8.356 exec 'go env GOPATH'
#25 12.85 exec 'go build -modfile=/tmp/grafana/.bingo/bra.tmp.mod -o=/go/bin/bra-v0.0.0-20200517080246-1e3013ecaff8 github.com/unknwon/bra'
#25 12.85 getting target cuelang.org/go/cmd/cue@v0.5.0 (module cuelang.org/go )
#25 14.54 exec 'go list -modfile=/tmp/grafana/.bingo/cue.tmp.mod -mod=mod -f={{.Name}} cuelang.org/go/cmd/cue'
#25 16.64 exec 'go get -modfile=/tmp/grafana/.bingo/cue.tmp.mod -d cuelang.org/go/cmd/cue@v0.5.0'
#25 16.64 exec 'go env GOBIN'
#25 16.65 exec 'go env GOPATH'
#25 23.96 exec 'go build -modfile=/tmp/grafana/.bingo/cue.tmp.mod -o=/go/bin/cue-v0.5.0 cuelang.org/go/cmd/cue'
#25 23.96 getting target github.com/drone/drone-cli/drone@v1.5.0 (module github.com/drone/drone-cli )
#25 29.88 exec 'go list -modfile=/tmp/grafana/.bingo/drone.tmp.mod -mod=mod -f={{.Name}} github.com/drone/drone-cli/drone'
#25 33.27 exec 'go get -modfile=/tmp/grafana/.bingo/drone.tmp.mod -d github.com/drone/drone-cli/drone@v1.5.0'
#25 33.27 exec 'go env GOBIN'
#25 33.28 exec 'go env GOPATH'
#25 42.90 exec 'go build -modfile=/tmp/grafana/.bingo/drone.tmp.mod -o=/go/bin/drone-v1.5.0 github.com/drone/drone-cli/drone'
#25 42.90 getting target github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 (module github.com/golangci/golangci-lint )
#25 55.64 exec 'go list -modfile=/tmp/grafana/.bingo/golangci-lint.tmp.mod -mod=mod -f={{.Name}} github.com/golangci/golangci-lint/cmd/golangci-lint'
#25 83.61 exec 'go get -modfile=/tmp/grafana/.bingo/golangci-lint.tmp.mod -d github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2'
#25 83.62 exec 'go env GOBIN'
#25 83.63 exec 'go env GOPATH'
#25 113.4 Error: get command failed
#25 113.4 > main.main /go/pkg/mod/github.com/bwplotka/bingo@v0.8.0/main.go:223
#25 113.4 > runtime.main /usr/local/go/src/runtime/proc.go:250
#25 113.4 > runtime.goexit /usr/local/go/src/runtime/asm_arm64.s:1172
#25 113.4 get
#25 113.4 > main.main.func2 /go/pkg/mod/github.com/bwplotka/bingo@v0.8.0/main.go:147
#25 113.4 > main.main.func5 /go/pkg/mod/github.com/bwplotka/bingo@v0.8.0/main.go:215
#25 113.4 > github.com/oklog/run.(*Group).Run.func1 /go/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38
#25 113.4 > runtime.goexit /usr/local/go/src/runtime/asm_arm64.s:1172
#25 113.4 0: getting github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
#25 113.4 > main.getAll /go/pkg/mod/github.com/bwplotka/bingo@v0.8.0/get.go:119
#25 113.4 > main.get /go/pkg/mod/github.com/bwplotka/bingo@v0.8.0/get.go:154
#25 113.4 > main.main.func2 /go/pkg/mod/github.com/bwplotka/bingo@v0.8.0/main.go:146
#25 113.4 > main.main.func5 /go/pkg/mod/github.com/bwplotka/bingo@v0.8.0/main.go:215
#25 113.4 > github.com/oklog/run.(*Group).Run.func1 /go/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38
#25 113.4 > runtime.goexit /usr/local/go/src/runtime/asm_arm64.s:1172
#25 113.4 install: build versioned: # github.com/golangci/golangci-lint/cmd/golangci-lint
#25 113.4 /usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1
#25 113.4 collect2: fatal error: cannot find 'ld'
#25 113.4 compilation terminated.
#25 113.4
#25 113.4 : error while running command 'go build -modfile=/tmp/grafana/.bingo/golangci-lint.tmp.mod -o=/go/bin/golangci-lint-v1.51.2 github.com/golangci/golangci-lint/cmd/golangci-lint'; err: exit status 1
------
executor failed running [/bin/sh -c if [[ "$BINGO" = "true" ]]; then go install github.com/bwplotka/bingo@latest && bingo get -v; fi]: exit code: 1
I have set-up a local repository by cloning the git repository and am using
docker build -t grafana-custom .
I am not too well-versed in Docker, so any help would be great. Thanks!