High level architecture

High level architecture of cOS and its components.

cOS toolkit High level Architecture

This page tries to encompass the cos-toolkit structure and the high level architecture, along with all the involved components.

Design goals

  • Blueprints to build immutable Linux derivatives from container images
  • A workflow to maintain, support and deliver custom-OS and upgrades to end systems
  • Derivatives have the same “foundation” manifest - easy to customize on top, add packages: systemd, dracut and grub as a foundation stack.
  • Upgrades delivered with container registry images ( also workflow with docker run && docker commit supported! )
    The content of the container image is the system which is booted.

High level overview

cOS-Toolkit encompasses several components required for building and distributing OS images. This issue summarize the current state, and how we plan to integrate them in a single CLI to improve the user experience.

cOS-Toolkit is also a manifest, which includes package definitions of how the underlying OS is composed. It forms an abstraction layer, which is then translated to Dockerfiles and built by our CI (optionally) for re-usal. A derivative can be built by parts of the manifest, or reusing it entirely, container images included.

High level overview

The fundamental phases can be summarized in the following steps:

  • Build packages from container images (and optionally keep build caches)
  • Extract artefacts from containers
  • Add metadata(s) and create a repository
  • (optionally) publish the repository and the artefacts

The developer of the derivative applies a customization layer during build, which is an augmentation layer in the same form of cos-toolkit itself.

Distribution

The OS delivery mechanism is done via container registries. The developer that wants to provide upgrades for the custom OS will push the resulting container images to the container registry. It will then be used by the installed system to pull upgrades from.

Upgrade mechanism

There are two different upgrade mechanisms available that can be used from a maintainer perspective: (a) release channels or (b) providing a container image reference ( e.g. my.registry.com/image:tag ) that can be tweaked in the customization phases to achieve the desired effect.


Last modified May 6, 2022 : Skip generating docs (d29a239)