2013-03-26 17:25:42 -04:00
|
|
|
:title: Setting up a dev environment
|
2013-03-25 22:52:52 -04:00
|
|
|
:description: Guides on how to contribute to docker
|
|
|
|
:keywords: Docker, documentation, developers, contributing, dev environment
|
|
|
|
|
|
|
|
Setting up a dev environment
|
|
|
|
============================
|
|
|
|
|
|
|
|
Instructions that have been verified to work on Ubuntu 12.10,
|
|
|
|
|
2013-04-01 21:26:00 -04:00
|
|
|
.. code-block:: bash
|
2013-03-25 22:52:52 -04:00
|
|
|
|
|
|
|
sudo apt-get -y install lxc wget bsdtar curl golang git
|
|
|
|
|
|
|
|
export GOPATH=~/go/
|
|
|
|
export PATH=$GOPATH/bin:$PATH
|
|
|
|
|
|
|
|
mkdir -p $GOPATH/src/github.com/dotcloud
|
|
|
|
cd $GOPATH/src/github.com/dotcloud
|
2013-05-12 21:46:35 -04:00
|
|
|
git clone git://github.com/dotcloud/docker.git
|
2013-03-25 22:52:52 -04:00
|
|
|
cd docker
|
|
|
|
|
|
|
|
go get -v github.com/dotcloud/docker/...
|
|
|
|
go install -v github.com/dotcloud/docker/...
|
|
|
|
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-03-25 22:52:52 -04:00
|
|
|
Then run the docker daemon,
|
|
|
|
|
2013-04-01 21:26:00 -04:00
|
|
|
.. code-block:: bash
|
2013-03-25 22:52:52 -04:00
|
|
|
|
|
|
|
sudo $GOPATH/bin/docker -d
|
|
|
|
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-03-25 22:52:52 -04:00
|
|
|
Run the ``go install`` command (above) to recompile docker.
|