Open justshell opened 1 year ago
I am aware of at least one dependency of cAdvisor that requires go1.17. I'm afraid that you will have to try with more up-to-date version of Golang.
The following worked for me:
sed -i -e 's?go-bindata/go-bindata?go-bindata?' /go/src/github.com/google/cadvisor/build/assets.sh
please note however that I am using GoLang 1.17.13
After a few unsuccessful attempts to build it using go get
as described in build.md (also editing assets.sh
as advised above has not helped), the following has worked with GoLang 1.17.13:
git clone https://github.com/google/cadvisor.git
cd cadvisor/
make build
sudo ./_output/cadvisor
After a few unsuccessful attempts to build it using
go get
as described in build.md (also editingassets.sh
as advised above has not helped), the following has worked with GoLang 1.17.13:git clone https://github.com/google/cadvisor.git cd cadvisor/ make build sudo ./_output/cadvisor
It's worked for me. Thanks
Reference: https://github.com/google/cadvisor/blob/master/docs/development/build.md
Issue:
Steps to reproduce: Used docker image of centos:7
Inside container:
Via golang 1.16 (which specified in go.mod file https://github.com/google/cadvisor/blob/master/go.mod#L3): still have an issue Also used docker image centos:7 as base
Can anyone explain how to build it?