Skip to content

Instantly share code, notes, and snippets.

@mindscratch
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindscratch/f95a50cfb3bfc53af5d7 to your computer and use it in GitHub Desktop.
Save mindscratch/f95a50cfb3bfc53af5d7 to your computer and use it in GitHub Desktop.
build cAdvisor in a CentOS docker container
# docker run --rm -it -v /Users/craig/projects/cadvisor:/cadvisor centos /bin/bash
yum install -y golang git mercurial
mkdir -p /code/{bin,pkg,src}
cd /code
export GOPATH=$(pwd)
export PATH=$PATH:$GOPATH/bin
# install godep and cover
go get github.com/tools/godep
go get code.google.com/p/go.tools/cmd/cover
# build cadvisor
cd /cadvisor
godep go build -a .
# should end up with a ./cadvisor binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment