Providing recipe for building cAdvisor with libipmctl support

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
This commit is contained in:
Maciej Iwanowski 2020-02-25 04:41:33 +01:00 committed by Maciej "Iwan" Iwanowski
parent 8594a6fb2c
commit 69318454cf
No known key found for this signature in database
GPG Key ID: 2484258A4DD3EE84

View File

@ -30,6 +30,21 @@ $GOPATH/src/github.com/google/cadvisor $ make test
For integration tests, see the [integration testing](integration_testing.md) page.
### Non-volatile Memory Support
cAdvisor can be linked against [libipmctl](https://github.com/intel/ipmctl) library that allows to gather information about Intel® Optane™ DC Persistent memory. If you want to build cAdvisor with libipmctl support you must meet following requirements:
* `libimpctl-devel` must be installed on build system.
* `libimpctl` must be installed on all systems where cAdvisor is running.
Detaled information about building `libipmctl` can be found in the project's [README](https://github.com/intel/ipmctl#build).
To enable `libimpctl` support `GO_FLAGS` variable must be set:
```
$GOPATH/src/github.com/google/cadvisor $ GO_FLAGS="-tags=libipmctl,netgo" make build
```
## Running Built Binary
Now you can run the built binary: