Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgwalters/rpm-ostree-cgwalters
Colin's github fork of rpm-ostree
https://github.com/cgwalters/rpm-ostree-cgwalters
Last synced: 26 days ago
JSON representation
Colin's github fork of rpm-ostree
- Host: GitHub
- URL: https://github.com/cgwalters/rpm-ostree-cgwalters
- Owner: cgwalters
- License: other
- Created: 2014-07-13T20:47:11.000Z (over 10 years ago)
- Default Branch: rebase-status-line
- Last Pushed: 2014-07-15T15:16:59.000Z (over 10 years ago)
- Last Synced: 2023-03-11T22:42:22.922Z (over 1 year ago)
- Language: C
- Size: 961 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
rpm-ostree
==========This program serves a dual role; its "tree compose" command is
intended for use on build servers, to take RPM packages and commit
them to an [OSTree](https://wiki.gnome.org/Projects/OSTree)
repository. On the client side, it acts as a consumer of the
`libostree` shared library, integrating upgrades with RPM.Major changes since 2014.8
--------------------------The previous major release of this program contained within it an
"autobuilder" codebase which had significant functionality beyond just
composing trees, such as creating VM disk images and running
smoketests.Since that time, the other functionality has moved to:
https://github.com/cgwalters/rpm-ostree-toolboxThis program now only commits trees to a repository, using "treefiles"
which are very simple JSON input data.Installing and setting up a repository
--------------------------------------First, unfortunately you must *disable* SELinux on the build host in
order to *support* SELinux on the built system. See:
https://bugzilla.redhat.com/show_bug.cgi?id=1060423Second, you must install `nss-altfiles` on the host system, and
edit your /etc/nsswitch.conf to include `altfiles`, like this:passwd: files altfiles
group: files altfilesYou may or may not be using SSSD (and thus the `sss` option); if you
are then it should look like:passwd: files altfiles sss
group: files altfiles sssFor more information, see:
http://lists.rpm.org/pipermail/rpm-maint/2014-January/003652.htmlThere are packages available in the rpm-ostree COPR:
http://copr-fe.cloud.fedoraproject.org/coprs/walters/rpm-ostree/At the moment, all of the tooling except for the patched
`shadow-utils` is in Fedora rawhide.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-z2Running rpm-ostree
------------------The core "rpm-ostree tree compose" builtin as input a "treefile". See
examples in `doc/treefile-examples`, as well as `doc/treefile.md`.# rpm-ostree compose tree --repo=/srv/rpm-ostree/repo --proxy=http://127.0.0.1:8123 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`. Note that we've specified a local caching proxy (`polipo` in
this case) - otherwise we you will download the packages for each
treecompose.You can export `/srv/rpm-ostree/repo` via any static webserver.
The use of `--proxy` is not mandatory but strongly recommended - with
this option you can avoid continually redownloading the packages every
compose. I personally use
[Polipo](http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/),
but you can of course any HTTP proxy you wish.