Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

many: take repositories from the "images" library #4554

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Jan 10, 2025

This commit changes the spec file so that most of the repositories are taken from the images library. See images PR#1112 for details.

Note that we still need the -no-auth-keys and the centos-stream symlinks - and we probably need to think about the handling of -no-auth-keys and if it could move under a different "tree" in images or something (like github.com/osbuild/images/data/repositories for the general case and github.com/osbuild/images/data/repositories/no-aux-keys subdir with the same file names or even repositories/for-rhel10 or something like this) but this should be ready for a first round of reviews now.

(see osbuild/images#1112)

@mvo5 mvo5 force-pushed the use-vendor-repos branch 3 times, most recently from 15a7a63 to ad41d86 Compare January 20, 2025 12:35
mvo5 added a commit to mvo5/images that referenced this pull request Jan 29, 2025
This is a mirror of
osbuild/osbuild-composer#4578
to update the gpg keys.

Once osbuild/osbuild-composer#4554 is
merged there should be no drift anymore.
@mvo5 mvo5 force-pushed the use-vendor-repos branch 5 times, most recently from 0a86a28 to e0743e2 Compare January 29, 2025 21:27
github-merge-queue bot pushed a commit to osbuild/images that referenced this pull request Jan 29, 2025
This is a mirror of
osbuild/osbuild-composer#4578
to update the gpg keys.

Once osbuild/osbuild-composer#4554 is
merged there should be no drift anymore.
@mvo5 mvo5 force-pushed the use-vendor-repos branch from e0743e2 to 68b18bb Compare January 30, 2025 08:22
repositories/README.md Outdated Show resolved Hide resolved
@mvo5 mvo5 force-pushed the use-vendor-repos branch from 68b18bb to c4c809d Compare January 30, 2025 09:05

Most are imported via the "vendor" mechanism, but some special
repositories are kept here, like the `*-no-aux-key.json` that
is only installed on rhel-8.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not true and needs to be "-no-aux-keys.json" is only installed on rhel-10

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, this is a typo. Those are el8 repos installed only on el10.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed this now with a better explaination.

@mvo5 mvo5 marked this pull request as ready for review January 30, 2025 09:18
@mvo5 mvo5 requested a review from thozza January 30, 2025 09:18
mvo5 added 3 commits January 31, 2025 09:20
This commit changes the spec file so that most of the repositories
are taken from the `images` library. See images PR#1112 for details.

Note that we still need the -no-auth-keys and the centos-stream
symlinks.
This commit runs go mod to get the latest changes.
This commit updates the cloudapi test that uses the real repositories
to use the version of those from the "images" library. Composer
no longer carries the default repos.

Note that this can most likely be simplified once
osbuild/images#1179
is merged.
@mvo5 mvo5 force-pushed the use-vendor-repos branch from c4c809d to 7722d3e Compare January 31, 2025 08:20
@mvo5
Copy link
Contributor Author

mvo5 commented Jan 31, 2025

Note that we added fedora-42 to the repositories in "images" recently (c.f. osbuild/images#1183) - having this PR would mean we get the update automatically :)

%endif

%else

%if 0%{?rhel}
# RHEL 10 supports building all RHEL versions
%if 0%{?rhel} >= 10
for REPO_FILE in $(ls repositories/rhel-* | grep -v 'no-aux-key'); do
for REPO_FILE in $(ls vendor/github.com/osbuild/images/data/repositories/rhel-* | grep -v 'no-aux-key'); do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling grep is no longer needed since there are no -no-aux-key repos in `images, right?

@@ -183,13 +184,13 @@ done

%else
# All other RHEL versions support building for the same version
for REPO_FILE in $(ls repositories/rhel-%{rhel}* | grep -v 'no-aux-key'); do
for REPO_FILE in $(ls vendor/github.com/osbuild/images/data/repositories/rhel-%{rhel}* | grep -v 'no-aux-key'); do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling grep is no longer needed since there are no -no-aux-key repos in `images, right?

install -m 0644 -vp ${REPO_FILE} %{buildroot}%{_datadir}/osbuild-composer/repositories/$(basename ${REPO_FILE})
done

# RHEL 9 supports building also for RHEL 8
%if 0%{?rhel} == 9
for REPO_FILE in $(ls repositories/rhel-8* | grep -v 'no-aux-key'); do
for REPO_FILE in $(ls vendor/github.com/osbuild/images/data/repositories/rhel-8* | grep -v 'no-aux-key'); do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling grep is no longer needed since there are no -no-aux-key repos in `images, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants