No description
Find a file
Brian C. Lane f298fed16d Add weldrcheck package to hold the integration tests
These tests build on the client functions to run integration tests on a
running API server.

It uses the reflect module to examine the methods attached to the
checkBlueprintsV0 struct and run the ones with names that start with
'Check', also checking the type signature of the functions and failing
the test if any of them don't match.

This will make it easier to add more checks without needing to add
boilerplate call/registration of the functions in the top level runner.
Just add the new function with the right name and signature and it will
be run when checkBlueprintsV0.Run() is called.

Checks for other API routes should be added to their own modules. There
will be some duplication of the Run function in each, but I think that
it will help keep things more manageable by separating them instead of
putting them all into a single giant Run() call.
2020-03-03 12:21:40 +01:00
.github/workflows ci: add golangci-lint 2020-03-02 14:28:55 +01:00
cmd distro: panic less often 2020-03-03 11:53:06 +01:00
distribution distribution: socket unit for RCM API 2020-02-24 12:03:25 +01:00
docs README: Define terminology as a base for internal refactoring 2020-01-30 14:42:25 +01:00
internal Add weldrcheck package to hold the integration tests 2020-03-03 12:21:40 +01:00
osbuild@bd6e6bde56 update osbuild submodule 2020-02-24 20:17:50 +01:00
repositories distro: add rhel-8.1 support 2020-02-29 01:17:50 +01:00
test update osbuild submodule 2020-02-24 20:17:50 +01:00
tools tools: add prepare-source.sh 2020-02-17 16:09:17 +01:00
vendor Use semver to enforce blueprint version numbers 2020-02-25 09:00:35 +01:00
.gitignore gitignore: ignore directories used for RPM build 2020-02-24 12:03:25 +01:00
.gitmodules image-info: add test 2019-10-05 14:47:35 +02:00
.golangci.yml ci/lint: disable govet/composites 2020-03-02 14:28:55 +01:00
.packit.yaml add packit 2019-11-29 12:16:27 +01:00
.travis.yml tools: add prepare-source.sh 2020-02-17 16:09:17 +01:00
dnf-json dnf-json: avoid randomizing package order 2020-03-02 17:44:36 +01:00
go.mod Use semver to enforce blueprint version numbers 2020-02-25 09:00:35 +01:00
go.sum Use semver to enforce blueprint version numbers 2020-02-25 09:00:35 +01:00
golang-github-osbuild-composer.spec spec: move worker-related service units to worker sub-package 2020-03-02 14:29:38 +01:00
LICENSE Revert "Fill in the license template" 2019-11-15 15:26:51 +01:00
Makefile Add tcp and tls support for worker and job API 2020-02-20 13:47:59 +01:00
README.md Add quick README about testing 2020-02-19 23:41:58 +01:00

osbuild-composer

An HTTP service for building bootable OS images. It provides the same API as lorax-composer but in the background it uses osbuild to create the images.

You can control it in Cockpit or using the composer-cli. To get started on Fedora, run:

# dnf install cockpit-composer golang-github-osbuild-composer composer-cli
# systemctl enable --now cockpit.socket
# systemctl enable --now osbuild-composer.socket

Now you can access the service using composer-cli, for example:

composer-cli status show

or using a browser: http://localhost:9090

API documentation

Please refer to the lorax-composer's documenation as osbuild-composer is a drop-in replacement.

High-level overview

overview

Frontends

osbuild-composer is meant to be used with 2 different front-ends. The primary one, which is meant for general use, is cockpit-composer. It is part of the Cockpit project and unless you have a strong reason not to use it, you should use it. composer-cli is a command line tool that can be used with osbuild-composer.

Compose

  • Compose is what the user submits over one of the frontends
  • It contains of one or more image builds
  • It contains zero or more upload actions

Image build

Job

  • What composer submits to a worker
  • Is a unit of work performed by osbuild (internally it is a single execution of osbuild)
  • Consists of one image build and zero or more Upload actions

Image type

  • In the cockpit-composer, for examples these are image types:
    • Openstack
    • Azure
    • AWS
  • As of now, we name them internally by their file format: vhd, ami, etc.
  • You can see a list of types by executing: composer-cli compose types

Upload action

  • Each image can be, but does not have to be, uploaded to a remote location
  • One image can be uploaded to multiple locations

Testing

See test/README.md