39 lines
1.3 KiB
Markdown
39 lines
1.3 KiB
Markdown
to prepare a new build node host:
|
|
|
|
```
|
|
sudo apt-get update
|
|
sudo apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev gdebi-core
|
|
```
|
|
|
|
check out the code, install the kernel, custom docker, nsexec, and reboot:
|
|
|
|
```
|
|
git clone https://bitbucket.org/yackob03/quay.git
|
|
cd quay
|
|
sudo gdebi --n binary_dependencies/builder/linux-headers-3.11.0-17_3.11.0-17.28_all.deb
|
|
sudo gdebi --n binary_dependencies/builder/linux-headers-3.11.0-17-generic_3.11.0-17.28_amd64.deb
|
|
sudo gdebi --n binary_dependencies/builder/linux-image-3.11.0-17-generic_3.11.0-17.28_amd64.deb
|
|
sudo gdebi --n binary_dependencies/builder/linux-image-extra-3.11.0-17-generic_3.11.0-17.28_amd64.deb
|
|
sudo gdebi --n binary_dependencies/builder/nsexec_1.22ubuntu1trusty1_amd64.deb
|
|
sudo gdebi --n binary_dependencies/builder/lxc-docker-0.8.0-tutum_0.8.0-tutum-20140212002736-afad5c0-dirty_amd64.deb
|
|
sudo chown -R 100000:100000 /var/lib/docker
|
|
sudo shutdown -r now
|
|
```
|
|
|
|
pull some base images if you want (optional)
|
|
```
|
|
sudo docker pull ubuntu
|
|
sudo docker pull stackbrew/ubuntu
|
|
sudo docker pull busybox
|
|
sudo docker pull lopter/raring-base
|
|
```
|
|
|
|
start the worker
|
|
|
|
```
|
|
cd quay
|
|
virtualenv --distribute venv
|
|
source venv/bin/activate
|
|
pip install -r requirements.txt
|
|
sudo STACK=prod venv/bin/python -m workers.dockerfilebuild -D
|
|
```
|