Monday, June 22, 2015

Building runC on Ubuntu

I just got really excited with runC after watching the intro presentation on dockercon and wanted to try it out. It seems my knowledge of go programming language and its ecosystem was just not enough to just go ahead and do it and a little bit of googling was required. To ease the pain for the newcomers here's how I did it.

First you need to clone the repository, obviously:
git clone https://github.com/opencontainers/runc
Then you need to make it. To do so you obviously need to have go installed. I installed mine from the following PPA
sudo apt-add-repository -y ppa:evarlast/golang1.4
sudo apt-get update
sudo apt-get install golang
Then you need to do the building
GOPATH="$(pwd)" PATH="$PATH:$GOPATH/bin" make
The last step is installing it which needs to be done as root
sudo make install
That's it! Then you can go an play with runc - it's AWESOME!

No comments: