= How to rebuild OSBS buildroot image.

OSBS build are done from a buildroot container image which is built on the OSBS nodes.
The dockerfile used to build the image are in ansible
link:https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/files/osbs/buildroot-Dockerfile-production.j2[Dockerfile]
for production and
link:https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/files/osbs/buildroot-Dockerfile-staging.j2[Dockerfile]
for staging.

To rebuild the image you can use the following playbook.

----
sudo -i ansible-playbook /srv/web/infra/ansible/playbooks/groups/osbs/rebuild-osbs-buildroot.yml
----

This will backup the image currently used and build a new image fetching the latest base image.
