Skip to content

pkg/utils: Support RHEL 9 Toolbx containers - #1220

Merged
debarshiray merged 3 commits into
containers:mainfrom
debarshiray:wip/rishi/issue-1065
Jan 30, 2023
Merged

debarshiray merged 3 commits into
containers:mainfrom
debarshiray:wip/rishi/issue-1065

Conversation

@debarshiray

@debarshiray debarshiray commented Jan 29, 2023 •

Copy link
Copy Markdown
Member

The URLs for the RHEL Toolbx images based on the Red Hat Universal Base
Images (or UBI) are a bit more complicated to construct, in comparison
to the URLs for Fedora's fedora-toolbox images. It's not enough to just
concatenate the registry, the image's basename and the release. Some
parts of the URL depend on the release's major number, which requires
custom code.

So far, the release's major number was hard coded to 8 since only RHEL 8
Toolbx containers were supported.

To support other RHEL major releases, it's necessary to have custom code
to construct the URLs for the Toolbx images.

#1065

@softwarefactory-delete-me

Copy link
Copy Markdown

Build succeeded.

✔️ unit-test SUCCESS in 8m 34s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 50s
✔️ system-test-fedora-rawhide SUCCESS in 12m 49s
✔️ system-test-fedora-36 SUCCESS in 12m 12s
✔️ system-test-fedora-35 SUCCESS in 13m 47s

@debarshiray debarshiray changed the title pkg/utils: ... pkg/utils: Support RHEL 9 Toolbx containers Jan 29, 2023
@softwarefactory-delete-me

Copy link
Copy Markdown

Build succeeded.

✔️ unit-test SUCCESS in 8m 21s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 2m 53s
✔️ system-test-fedora-rawhide SUCCESS in 12m 43s
✔️ system-test-fedora-36 SUCCESS in 12m 05s
✔️ system-test-fedora-35 SUCCESS in 13m 42s

The previous commit broke the golangci-lint test [1] because the GitHub
Action runs on Ubuntu 22.04, which only has Shadow 4.8 [2], whereas
libsubid.so was introduced in Shadow 4.9 [3].

However, that's not a big deal because 'go vet' was earlier added to the
set of tests run by 'meson test' [4], and 'go vet' is one of the linters
run by golangci-lint [5].  So, while it's not a proper replacement, it's
good enough.

[1] Commit ca8007c
    containers#1180

[2] https://packages.ubuntu.com/source/jammy/shadow
    https://packages.ubuntu.com/source/jammy-updates/shadow

[3] Shadow commit 0a7888b1fad613a0
    shadow-maint/shadow@0a7888b1fad613a0
    shadow-maint/shadow#154

[4] Commit f695012
    containers#1186

[5] https://golangci-lint.run/usage/linters/
    https://golangci-lint.run/usage/linters/#govet

This reverts commit 7c86f30.

containers#1221
The URLs for the RHEL Toolbx images based on the Red Hat Universal Base
Images (or UBI) are a bit more complicated to construct, in comparison
to the URLs for Fedora's fedora-toolbox images.  It's not enough to just
concatenate the registry, the image's basename and the release.  Some
parts of the URL depend on the release's major number, which requires
custom code.

So far, the release's major number was hard coded to 8 since only RHEL 8
Toolbx containers were supported.

To support other RHEL major releases, it's necessary to have custom code
to construct the URLs for the Toolbx images.

containers#1065
@softwarefactory-delete-me

Copy link
Copy Markdown

Build succeeded.

✔️ unit-test SUCCESS in 8m 26s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 2m 52s
✔️ system-test-fedora-rawhide SUCCESS in 12m 44s
✔️ system-test-fedora-36 SUCCESS in 13m 33s
✔️ system-test-fedora-35 SUCCESS in 14m 00s

@debarshiray
debarshiray merged commit 0a29b37 into containers:main Jan 30, 2023
@debarshiray
debarshiray deleted the wip/rishi/issue-1065 branch January 30, 2023 10:33
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.

1 participant