From 69318454cf2d607b298e9e154928626c50387e38 Mon Sep 17 00:00:00 2001 From: Maciej Iwanowski Date: Tue, 25 Feb 2020 04:41:33 +0100 Subject: [PATCH] Providing recipe for building cAdvisor with libipmctl support Signed-off-by: Maciej "Iwan" Iwanowski --- docs/development/build.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/development/build.md b/docs/development/build.md index a4ae8eaf..748631ee 100644 --- a/docs/development/build.md +++ b/docs/development/build.md @@ -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: