devenvironment.rst 804 B

12345678910111213141516171819202122232425262728293031
  1. :title: Setting up a dev environment
  2. :description: Guides on how to contribute to docker
  3. :keywords: Docker, documentation, developers, contributing, dev environment
  4. Setting up a dev environment
  5. ============================
  6. Instructions that have been verified to work on Ubuntu 12.10,
  7. .. code:: bash
  8. sudo apt-get -y install lxc wget bsdtar curl golang git
  9. export GOPATH=~/go/
  10. export PATH=$GOPATH/bin:$PATH
  11. mkdir -p $GOPATH/src/github.com/dotcloud
  12. cd $GOPATH/src/github.com/dotcloud
  13. git clone git@github.com:dotcloud/docker.git
  14. cd docker
  15. go get -v github.com/dotcloud/docker/...
  16. go install -v github.com/dotcloud/docker/...
  17. Then run the docker daemon,
  18. .. code:: bash
  19. sudo $GOPATH/bin/docker -d
  20. Run the ``go install`` command (above) to recompile docker.