No description
Find a file
Martin Sehnoutka 3c19420b3e introduce spec file and related build scripts
The repository now contains a Vagrantfile for running the testing script
against an RPM package created locally using `make rpm`. To run this
test use `make vagrant-test`. setup.py was also modified to adhere to
packaging guidelines and not to install system-level executables.
The lincense is now included in the Python package using the MANIFEST.in
file.
2019-07-23 15:22:40 +02:00
assemblers Assembler: no longer mount devtmpfs in the container 2019-07-19 00:51:12 +02:00
osbuild osbuild: remove systemResourcesFromEtc 2019-07-19 13:31:49 +02:00
samples osbuild-run: generate /etc/pki/tls/certs/ca-bundle.crt 2019-07-19 13:31:49 +02:00
stages fix warnings generated by pylint 2019-07-17 13:08:22 +02:00
test introduce spec file and related build scripts 2019-07-23 15:22:40 +02:00
.gitignore introduce spec file and related build scripts 2019-07-23 15:22:40 +02:00
.pylintrc loop: add helpers to use IPC to create loop devices 2019-07-19 00:51:12 +02:00
.travis.yml add pylint and travis CI configuration 2019-07-17 13:08:22 +02:00
LICENSE Add LICENSE 2019-04-09 18:18:44 +02:00
Makefile introduce spec file and related build scripts 2019-07-23 15:22:40 +02:00
MANIFEST.in introduce spec file and related build scripts 2019-07-23 15:22:40 +02:00
osbuild-run osbuild-run: generate /etc/pki/tls/certs/ca-bundle.crt 2019-07-19 13:31:49 +02:00
osbuild.spec introduce spec file and related build scripts 2019-07-23 15:22:40 +02:00
README.md osbuild: replace --from and --save with --input and --output 2019-06-12 16:26:29 +02:00
setup.py introduce spec file and related build scripts 2019-07-23 15:22:40 +02:00

osbuild

A build system for operating system images, working towards an image build pipeline that's more comprehensible, reproducible, and extendable.

Pipelines

The build process for an image is described by a pipeline. Each stage in a pipeline is a program that, given some configuration, modifies a file system tree. Pipelines are defined as JSON files like this one:

{
  "name": "Example Image",
  "pipeline": [
    {
      "name": "io.weldr.dnf",
      "options": {
        "packages": [ "@core", "httpd" ]
      }
    },
    {
      "name": "io.weldr.systemd",
      "options": {
        "enabled_services": [ "httpd" ]
      }
    },
    {
      "name": "io.weldr.qcow2",
      "options": {
        "target": "output.qcow2"
      }
    }
  ]
}

osbuild runs each of the stages in turn, isolating them from the host and from each other, with the exception that the first stage may be given an input directory, the last stage an output directory and all stages of a given pipeline are given the same filesystem tree to operate on.

Each stage is passed the (appended) options object as JSON over stdin.

The above pipeline has no input and produces a qcow2 image.

Running

osbuild [--input DIRECTORY] [--output DIRECTORY] PIPELINE

Runs PIPELINE. If --input is given, the directory is available read-only in the first stage. If --output is given it, it must be empty and is avialble read-write in the final stage.