How to rebuild OSBS buildroot image

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2020-05-12 21:27:50 +02:00
parent 4da0c3b5ff
commit 721a8d5182

12
rebuild_osbs_buildroot.md Normal file
View file

@ -0,0 +1,12 @@
# 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 [Dockerfile](https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/files/osbs/buildroot-Dockerfile-production.j2) for production and [Dockerfile](https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/files/osbs/buildroot-Dockerfile-staging.j2) 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.