Last active
August 29, 2015 14:10
-
-
Save mindscratch/f95a50cfb3bfc53af5d7 to your computer and use it in GitHub Desktop.
build cAdvisor in a CentOS docker container
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
# 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