Skip to content

Commit

Permalink
Providing recipe for building cAdvisor with libipmctl support
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
  • Loading branch information
Maciej Iwanowski committed Mar 13, 2020
1 parent 8594a6f commit 6931845
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/development/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6931845

Please sign in to comment.