forked from google/cadvisor
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Building and Testing cAdvisor | ||
|
||
**Note**: cAdvisor only builds on Linux since it uses Linux-only APIs. | ||
|
||
You should be able to `go get` cAdvisor as expected (we use `-d` to only download): | ||
|
||
``` | ||
$ go get -d github.com/google/cadvisor | ||
``` | ||
|
||
We use `godep` so you will need to get that as well: | ||
|
||
``` | ||
$ go get github.com/tools/godep | ||
``` | ||
|
||
At this point you can build cAdvisor: | ||
|
||
``` | ||
$ godep go build github.com/google/cadvisor | ||
``` | ||
|
||
or run unit tests: | ||
|
||
``` | ||
$ godep go test github.com/google/cadvisor/... | ||
``` |