Go to file
Colin Walters 1319e1616d Rename create -> treecompose
It's just a better name.  Also matches what we already did for the
autobuilder.
2014-03-22 15:20:23 -04:00
composeui composeui: Add UI to home page, add footer 2014-03-05 18:32:30 -05:00
doc Move demo-treefile.json to doc/ 2014-02-27 18:18:42 -05:00
packaging packaging: Add rpm-ostree-sign 2014-03-22 10:26:22 -04:00
patches/shadow-utils patches: New directory containing patches for Fedora userspace 2014-01-04 07:42:20 -05:00
scripts scripts/ostree-ls-big-files.js: New script to analyze repo files for size 2014-01-29 17:55:07 -05:00
src Rename create -> treecompose 2014-03-22 15:20:23 -04:00
.gitignore .gitignore: Update 2014-02-23 17:11:39 -05:00
843833DF-pub.gpg Add demo public key here 2014-02-02 16:12:10 -05:00
autogen.sh Use the now external libgsystem 2014-02-07 17:29:40 -05:00
configure.ac Bump dependency on OSTree 2014-03-22 10:24:12 -04:00
COPYING COPYING: Update to latest LGPLv2+ 2014-03-10 16:40:16 -04:00
Makefile-autobuilder.am autobuilder: Rename build -> treecompose 2014-03-14 22:53:32 -04:00
Makefile-decls.am
Makefile-gsystem-introspection.am
Makefile-rpm-ostree.am Rename create -> treecompose 2014-03-22 15:20:23 -04:00
Makefile.am Use the now external libgsystem 2014-02-07 17:29:40 -05:00
Makefile.dist-packaging Makefile.dist-packaging: Update from ostree 2014-03-22 10:27:16 -04:00
README.md Minor documentation fix for running rpm-ostree. 2014-03-12 16:34:40 -04:00
TODO TODO: Add two more bits 2014-02-15 17:08:40 -05:00

rpm-ostree

This tool takes a set of packages, and commits them to an OSTree repository. At the moment, it is intended for use on build servers.

Using rpm-ostree

There are two levels; the core "rpm-ostree" command takes a set of packages and commits them to an OSTree repository.

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.

Installing and setting up a repository

There are packages available in the rpm-ostree COPR; you can also just "sudo make install" it.

Once you have that done, choose a build directory. Here we'll use /srv/rpm-ostree.

# cd /srv/rpm-ostree
# mkdir repo
# ostree --repo=repo init --mode=archive-z2

Running rpm-ostree

The core "rpm-ostree" takes as input a "treefile". There is a demo one in doc/demo-treefile.json.

# rpm-ostree create sometreefile.json

All this does is use yum to download RPMs from the referenced repos, and commit the result to the OSTree repository, using the ref named by ref.

You can export /srv/rpm-ostree/repo via any static webserver.

Running the autobuilder

The autobuilder instead takes as input a products.json which generates multiple treefiles. Try this:

# ln -s /path/to/rpm-ostree.git/fedostree/products.json .
# rpm-ostree-autobuilder

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.