.. | ||
__init__.py | ||
diffsworker.py | ||
dockerfilebuild.py | ||
README.md | ||
webhookworker.py | ||
worker.py |
to prepare a new build node host starting from a 14.04 base server:
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 lxc
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/nsexec_1.22ubuntu1trusty1_amd64.deb
sudo gdebi --n binary_dependencies/builder/lxc-docker-0.9.0_0.9.0-20140501212101-72572f0-dirty_amd64.deb
sudo usermod -v 100000-200000 -w 100000-200000 root
sudo chmod +x /var/lib/lxc
sudo chmod +x /var/lib/docker
cd ~
git clone https://bitbucket.org/yackob03/quayconfig.git
ln -s ../../quayconfig/production/ quay/conf/stack
start the worker
cd quay
virtualenv --distribute venv
venv/bin/pip install -r requirements.txt
sudo venv/bin/python -m workers.dockerfilebuild -D