2013-12-23 03:06:09 +04:00
rpm-ostree
==========
This tool takes a set of packages, and commits them to an
[OSTree ](https://wiki.gnome.org/Projects/OSTree ) repository. At the
moment, it is intended for use on build servers.
2013-12-22 19:59:00 +04:00
Using rpm-ostree
2013-12-23 03:06:09 +04:00
----------------
2013-12-22 04:41:30 +04:00
2014-02-04 03:04:06 +04:00
There are two levels; the core "rpm-ostree" command takes a set of
packages and commits them to an OSTree repository.
2013-12-22 04:41:30 +04:00
2014-02-04 03:04:06 +04:00
The higher level rpm-ostree-autobuilder parses a "products.json" which
generates potentially many filesystem trees. It also has code to
generate disk images and run smoketests.
2013-12-22 04:41:30 +04:00
2014-02-04 03:04:06 +04:00
Setting up the autobuilder
--------------------------
2013-12-22 04:41:30 +04:00
2014-02-04 03:04:06 +04:00
There are packages available in the rpm-ostree COPR; you can also
just "sudo make install" it.
2013-12-22 04:41:30 +04:00
2014-02-04 03:04:06 +04:00
Once you have that done, choose a build directory. Here we'll use
/srv/rpm-ostree.
2013-12-22 04:41:30 +04:00
2014-02-04 03:04:06 +04:00
# cd /srv/rpm-ostree
# mkdir repo
# ostree --repo=repo init --mode=archive-z2
# ln -s /path/to/rpm-ostree.git/fedostree/products.json .
# rpm-ostree-autobuilder autobuilder
2013-12-22 04:41:30 +04:00
2014-02-04 03:04:06 +04:00
That will automatically poll every hour for changes in the RPMs
referenced by the products.json file, commit them to the
/srv/rpm-ostree/repo, and generate cached disk images in
/srv/rpm-ostree/images.
2014-02-04 20:37:05 +04:00
You can export /srv/rpm-ostree/repo (and images/, and builds/) via any
static webserver.