Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.
This repository was archived by the owner on May 24, 2024. It is now read-only.

Inject compose version as image version #131

Open
@cgwalters

Description

@cgwalters

A toplevel goal of this project is to not fork the underlying OS. Contrast with e.g. https://github.com/coreos/fedora-coreos-config/ which carries its own lockfiles, which creates divergence.

Today, the fedora-derivatives tooling uses "composes" which are basically versioned directories written to NFS-like storage and served by HTTP with custom JSON metadata.

It'd be useful for us to have our version number (which is reflected both in /usr/lib/os-release and the standard org.opencontainers.image.version label) include the underlying compose version.

rpm-ostree supports a mutate-os-release key which is intended for this. I think what may work best is if we have a new yaml file like:

$ cat versioning.yaml
variables:
  composeversion: "20240113.d.0"
automatic-version-prefix: "${releasever}.${composeversion}"

or so? Then we'd need to overwrite composeversion.yaml in git too. Hmm, maybe we don't need ${releasver} here at all. Yeah...let's just simplify this to:

variables:
  composeversion: "20240113.d.0"
automatic-version-prefix: "${composeversion}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions