mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #827 from dotcloud/dev_environment_update
Update "Setting Up a Dev Environment" doc, with modern golang PPA and stable lxc kernel
This commit is contained in:
commit
1cc4049e82
1 changed files with 26 additions and 2 deletions
|
@ -5,11 +5,35 @@
|
||||||
Setting Up a Dev Environment
|
Setting Up a Dev Environment
|
||||||
============================
|
============================
|
||||||
|
|
||||||
Instructions that have been verified to work on Ubuntu 12.10,
|
Instructions that have been verified to work on Ubuntu Precise 12.04 (LTS) (64-bit),
|
||||||
|
|
||||||
|
|
||||||
|
Dependencies
|
||||||
|
------------
|
||||||
|
|
||||||
|
**Linux kernel 3.8**
|
||||||
|
|
||||||
|
Due to a bug in LXC docker works best on the 3.8 kernel. Precise comes with a 3.2 kernel, so we need to upgrade it. The kernel we install comes with AUFS built in.
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo apt-get -y install lxc wget bsdtar curl golang git
|
# install the backported kernel
|
||||||
|
sudo apt-get update && sudo apt-get install linux-image-generic-lts-raring
|
||||||
|
|
||||||
|
# reboot
|
||||||
|
sudo reboot
|
||||||
|
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
sudo apt-get install python-software-properties
|
||||||
|
sudo add-apt-repository ppa:gophers/go
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install lxc wget bsdtar curl golang-stable git
|
||||||
|
|
||||||
export GOPATH=~/go/
|
export GOPATH=~/go/
|
||||||
export PATH=$GOPATH/bin:$PATH
|
export PATH=$GOPATH/bin:$PATH
|
||||||
|
|
Loading…
Reference in a new issue