No description
Find a file
Christian Kellner 6695294a29 meta: ability to auto-detect runner
The way that runners were designed is the following: For each distro
we have a specific runner. In case a new version of the distro can
use the previous runner, we just create a symlink. In case a new
distro version needs adjustments, the runner is copied and adjusted.
This is a very clean and obvious design. There is one big drawback:
For each new distribution a symlink must be created before it can be
used. For Fedora that should ideally happen when it is branched; and
this will, ipso facto, always be a symlink since at the time of the
branching the new distro is the old distro. But at this very moment
osbuild will be broken since it does not contain the new runner; the
only way to prevent this is to create the corresponding new runner
before the distro is branched, where it then must be a symlink too.
This very much suggest that instead of the explicit symlink, which
does not /that/ much clarity, the existing "old" runner should just
work for the new distribution. This commit implements the logic to
do just that: all existing runners are parsed into a distro and
version tuple and then, given a specific requested distro, the best
matching one is return.
2022-10-11 12:49:16 +02:00
.devcontainer devcontainer: include packit, boto3 & more tools 2021-08-17 10:42:03 +02:00
.github manifest-db: propage the osbuild SHA on manifest-db 2022-09-23 14:18:38 +02:00
assemblers osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
data devices: add custom udev rule inhibitor mechanism 2021-12-09 00:44:21 +00:00
devices test/isort: apply diff to full tree 2022-09-23 12:08:10 +02:00
docs docs/osbuild-manifest.5: fix typo 2022-07-25 16:01:48 +02:00
inputs test/isort: apply diff to full tree 2022-09-23 12:08:10 +02:00
mounts test/isort: apply diff to full tree 2022-09-23 12:08:10 +02:00
osbuild meta: ability to auto-detect runner 2022-10-11 12:49:16 +02:00
runners osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
schemas schemas/osbuild2: mark version as required 2022-07-25 16:01:48 +02:00
schutzbot rpmbuild: add fedora-37 2022-09-01 11:31:58 +02:00
selinux docs: document osbuild and selinux integration 2021-10-01 11:02:32 +02:00
sources osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
stages stages: fix ostree config stage 2022-09-28 21:30:49 +02:00
test test/src: improve file enumeration 2022-09-23 12:08:10 +02:00
tools tree: pep8 + linter fixes 2022-09-23 12:08:10 +02:00
.editorconfig editorconfig: include markdown specifications 2020-10-23 16:29:50 +02:00
.git-blame-ignore-revs git: ignore isort commit 2022-09-12 13:32:51 +02:00
.gitignore git: ignore common virtual env locations 2022-06-30 10:34:27 +02:00
.gitlab-ci.yml ci: remove the composer image test 2022-09-14 10:00:43 +02:00
.mypy.ini osbuild: fix optional-types 2022-07-13 17:31:37 +02:00
.packit.yaml packit: Enable Bodhi updates for unstable Fedoras 2022-09-23 11:06:11 +02:00
.travis.yml ci: move test_boot to github-actions 2020-05-13 22:00:27 +02:00
LICENSE Revert "Fill in the license template" 2019-11-18 12:23:10 +01:00
Makefile main: add a --version argument 2022-07-06 09:57:24 +02:00
osbuild.spec Post release version bump 2022-09-28 08:21:46 +00:00
README.md Add support for installing containers in images 2022-02-10 14:43:17 +01:00
requirements.txt Makefile: use pytest for nicer output 2020-12-04 18:24:48 +01:00
samples samples: replace with symlink to test data 2021-07-12 18:44:50 +02:00
Schutzfile rpmbuild: add fedora-37 2022-09-01 11:31:58 +02:00
setup.cfg build: extend pylint suppressions 2022-09-13 16:21:14 +02:00
setup.py Post release version bump 2022-09-28 08:21:46 +00:00

OSBuild

Build-Pipelines for Operating System Artifacts

OSBuild is a pipeline-based build system for operating system artifacts. It defines a universal pipeline description and a build system to execute them, producing artifacts like operating system images, working towards an image build pipeline that is more comprehensible, reproducible, and extendable.

See the osbuild(1) man-page for details on how to run osbuild, the definition of the pipeline description, and more.

Project

Contributing

Please refer to the developer guide to learn about our workflow, code style and more.

Requirements

The requirements for this project are:

  • bubblewrap >= 0.4.0
  • python >= 3.7

Additionally, the built-in stages require:

  • bash >= 5.0
  • coreutils >= 8.31
  • curl >= 7.68
  • qemu-img >= 4.2.0
  • rpm >= 4.15
  • tar >= 1.32
  • util-linux >= 235
  • skopeo

At build-time, the following software is required:

  • python-docutils >= 0.13
  • pkg-config >= 0.29

Testing requires additional software:

  • pytest

Install

Installing osbuild requires to not only install the osbuild module, but also additional artifacts such as tools (i.e: osbuild-mpp) sources, stages, schemas and SELinux policies.

For this reason, doing an installation from source is not trivial and the easier way to install it is to create the set of RPMs that contain all these components.

This can be done with the rpm make target, i.e:

make rpm

A set of RPMs will be created in the ./rpmbuild/RPMS/noarch/ directory and can be installed in the system using the distribution package manager, i.e:

sudo dnf install ./rpmbuild/RPMS/noarch/*.rpm

Repository:

License:

  • Apache-2.0
  • See LICENSE file for details.