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

Inject compose version as image version #131

Open
cgwalters opened this issue Jan 15, 2024 · 2 comments
Open

Inject compose version as image version #131

cgwalters opened this issue Jan 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@cgwalters
Copy link
Member

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}"
@cgwalters cgwalters added the enhancement New feature or request label Jan 15, 2024
@lmilbaum
Copy link
Contributor

The centos compose mentioned in c9s.repo file is the latest and greatest centos stream "release". Should we use the centos stream development composes instead?

@cgwalters
Copy link
Member Author

Ultimately we should be making container images for each compose.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants