Merge pull request #108148 from SuperSandro2000/cadvisor
cadvisor: 0.36.0 -> 0.37.0
This commit is contained in:
commit
8a9d1aad72
1 changed files with 15 additions and 6 deletions
|
@ -1,22 +1,31 @@
|
||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "cadvisor";
|
pname = "cadvisor";
|
||||||
version = "0.36.0";
|
version = "0.37.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = "cadvisor";
|
repo = "cadvisor";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "12hk2l82i7hawzbvj6imcfwn6v8pcfv0dbjfn259yi4b0jrlx6l8";
|
sha256 = "15njzwvsl7jc2hgxlpsksmn7md3bqpavzaskfdlmzxnxp3biw3cj";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/google/cadvisor";
|
modRoot = "./cmd";
|
||||||
|
|
||||||
subPackages = [ "." ];
|
vendorSha256 = "1vbydwj3xrz2gimwfasiqiwzsdiplaq7imildzr4wspkk64dprf4";
|
||||||
|
|
||||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/google/cadvisor/version.Version=${version}" ];
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/google/cadvisor/version.Version=${version}" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/{cmd,cadvisor}
|
||||||
|
rm $out/bin/example
|
||||||
|
'';
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
rm internal/container/mesos/handler_test.go
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Analyzes resource usage and performance characteristics of running docker containers";
|
description = "Analyzes resource usage and performance characteristics of running docker containers";
|
||||||
homepage = "https://github.com/google/cadvisor";
|
homepage = "https://github.com/google/cadvisor";
|
||||||
|
|
Loading…
Reference in a new issue