This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/workers
2014-02-11 19:55:22 -05:00
..
__init__.py First few changes for the image diffs feature. 2013-10-17 18:25:19 -04:00
diffsworker.py Extract some boilerplate from the worker and create a base class. Port the diffs worker over to the base. 2013-11-15 15:50:20 -05:00
dockerfilebuild.py Change to the new paging format with the commands available at the top. 2014-02-10 19:12:43 -05:00
README.md Add the binary dependencies for the build worker and some instructions on how to get it running on a host. 2014-02-11 19:55:22 -05:00
webhookworker.py Make the worker post json. Add a retry timeout after an incompletel queue item is processed. Submit webhook jobs to the queue on a successful push. 2013-11-16 15:05:26 -05:00
worker.py Extract some boilerplate from the worker and create a base class. Port the diffs worker over to the base. 2013-11-15 15:50:20 -05:00

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/*.deb
sudo chown 100000:100000 /var/lib/docker
sudo shutdown -r now

start the worker

cd quay
virtualenv --distribute venv
source venv/bin/activate
pip install -r requirements.txt
STACK=prod python -m workers.dockerfilebuild -D