fedora-gray/config
Garrett Brown 2caa6058ae Rebased on Onyx-Framework 2023-11-20 16:41:29 -06:00
..
files/usr/share/ublue-os fix: accommodate new justfile organization 2023-09-25 18:12:56 +03:00
scripts fix: specify image name in policy.json (#176) 2023-10-06 09:49:56 +00:00
README.md feat: add support for nested modules (#152) 2023-09-19 06:32:16 +00:00
recipe.yml Rebased on Onyx-Framework 2023-11-20 16:41:29 -06:00

README.md

Configuring your image

The main file of your is the recipe file. You can have multiple recipe files, and the ones to build are declared in the matrix section of build.yml.

Basic options

At the top of the recipe, there are four mandatory configuration options.

name: is the name of the image that is used when rebasing to it. For example, the name "sapphire" would result in the final URL of the container being ghcr.io/<yourusername>/sapphire.

description: is a short description of your image that will be attached to your image's metadata.

base-image: is the URL of the image your image will be built upon.

image-version: is the version tag of the base-image that will be pulled. For example, Universal Blue's images build with Fedora version tags (38, 39), with the latest tag for the latest major version, and many other tags.

Modules

The core of startingpoint's configuration is built around the idea of modules. Modules are scripts in the ../modules directory that you configure under modules: in the recipe. They are executed in order, and can run arbitrary shell commands and write any files.

This repository fetches some useful default modules from ublue-os/bling, like rpm-ostree for pseudo-declarative package management, bling for pulling extra components from ublue-os/bling, and files for copying files from the config/files/ directory into your image.

For a comprehensive list of modules, their in-depth documentation and example configuration, check out the Modules page on the website.

Building multiple images and including module configuration from other files and

To build multiple images, you need to create another recipe.yml file, which you should name based on what kind of image you want it to build. Then, edit the build.yml file. Inside the file, under jobs: strategy: matrix:, there's a list of recipe files to build images, which you need to add your new recipe file to. These should be paths to files inside the config directory.

Module configuration can be included from other files using the from-file syntax. The value should be a path to a file inside the config directory. For example, the following snippet could be used to include the configuration for installing a set of packages common to multiple images.

modules:
  - from-file: common-packages.yml

And inside config/common-packages.yml

type: rpm-ostree
install:
  - i3
  - dunst
  - rofi
  - kitty