* add go module support, update go-bindata ref, bump runc dep
```
go mod init github.com/google/cadvisor
go mod tidy
go get github.com/matttproud/golang_protobuf_extensions@c182affec369e30f25d3eb8cd8a478dee585ae7d
go get github.com/containerd/typeurl@5eb25027c9fdd675e1db2bd25af02f5db75027ab
```
Somehow the dependencies retrieved by `go mod init` was mismatched (maybe because
runc itself does not support go module yet ?). This fixes the dependencies retrieved
in go module, the packages bump itself seems sane.
The original go-bindata is unmaintained and is on an old revision, so our usage
of it is outdated. Changed to https://github.com/kevinburke/go-bindata which
seems to be a more official and well maintained fork, and bump to latest version.
When using `make build` to compile the source,
build fails with error/s. The reason is because
of GO_CMD variable is set to 'install' as default,
which is not valid when running `make build` or
`make`.
Depending on the valid git tag, release.sh will
set the GO_CMD variable. If valid git tag is
available e.g.: vx.y.z.beta1, then GO_CMD is
set to `build`.
If valid git tag is not available, release.sh
will any way bails out serving the purpose.
So drop using GO_CMD, to fix the default build.
We can't build a static binary because that would require bundling the
closed source NVML library in cAdvisor.
Instead, gonvml uses dlopen to dynamically load NVML.
The integration test script was changed so that it aborts the testing
when the cAdvisor binary exits with a non-zero error code.
Also in this PR:
- clean up makefile to print more informative output
- change make release to build the release binary
Update jenkins_e2e.sh to match the up-to-date configurations of the
cAdvisor jenkins PR-builder and CI jobs. Once this is merged, we can
update those jobs to call this script instead.
- Eliminate version/VERSION in favor of parsing git versions
- Enforce that releases are built against tagged versions
- Delete the broken release script, change `make release` to build the release
- Poll localhost:8080/healthz to wait for cAdvisor to start
- Set the script exit code to the test exit status
- Fix bash formatting
- Check for sudo access at the start