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
- 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