This repository is now obsolete. The content has been integrated in https://github.com/DBuildService/dbs-server.
Build system which builds docker images using celery.
dnf install python-celery python-redis redis python-docker-py docker docker-registry GitPython
systemctl start redis.service
systemctl start docker-registry.service
To start a celery worker, you have to be in directory where celeryconfig.py
persists:
celery -A dbs_worker.docker_tasks worker -l INFO
Setup https://github.com/DBuildService/dock and make it avaiable on ${PYTHONPATH}
.
Either run test suite:
py.test -s dbs_builder/test.py
or try it yourself
from dbs_builder.task_api import TaskApi
t = TaskApi()
t.build_docker_image(build_image="buildroot-fedora",
git_url="github.com/TomasTomecek/docker-hello-world.git",
local_tag="fedora-celery-build",)
Interaction with build service is done through TaskApi
class from task_api.py
module.