Play Docker(6) -- Using docker for building

TurnToJPG -->

The steps is for Ubuntu12.04, the purpose of this documentation is for swiftly get the source code and fetch it to local repository.


Pull back the Ubuntu12.04:

$ sudo docker pull ubuntu12.04

Then run into the ubuntu12.04 via:

$ sudo docker run -it ubuntu12.04 /bin/bash
root@7b30cc924bb0:~ #

Install following packages in Ubuntu 12.04 container:

# apt-get install python-software-properties
# apt-get install curl
# curl > /bin/repo
# chmod 777 /bin/repo
# apt-get update
# apt-get install python-pip
# apt-get install git
# git config --global
# git config --global kkkttt
# ssh -T
# repo init -u
# repo sync
# declare -x USER="root"
# apt-get install python-lxml autoconf bzip2 libtool unzip wget 
# python third_party/

Install nginx:

$ sudo rpm -Uvh
$ sudo rpm -ivh nginx

Change nginx’s listenning directory to /var/www/, tar the directory and put it under this folder, then use firefox for downloading it.

Compile Local

Referes to :

$ sudo apt-get install libglib2.0-dev libglib2.0