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

added dnf upgrade when building the integration-test-base image #327

Merged
merged 1 commit into from
May 31, 2023
Merged

added dnf upgrade when building the integration-test-base image #327

merged 1 commit into from
May 31, 2023

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented May 31, 2023

This PR adds a dnf upgrade previous to installing the necessary packages. This way we avoid conflicts in packages, e.g.

12:51:09             err:  Problem: conflicting requests
12:51:09             err:   - nothing provides selinux-policy >= 38.1.14-1.el9 needed by hirte-selinux-0.3.0-1.el9.x86_64 from hirte-rpms

Note: the updated integration-test-base image was already pushed manually (otherwise the integration test in this PR would fail as well).

Signed-off-by: Michael Engel <mengel@redhat.com>
@dougsland
Copy link
Contributor

LGTM
lets make it fly.

@dougsland dougsland merged commit 2c042bf into eclipse-bluechi:main May 31, 2023
@@ -2,6 +2,8 @@ FROM quay.io/centos/centos:stream9

RUN dnf install -y dnf-plugin-config-manager

RUN dnf upgrade --refresh -y
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, we are already getting the latest CS9 container as a base here, so does it mean that the container might not be synced with the actual content of CS9 repos? Meaning that for example container is recreated only once per day while repos are updated regularly during the day?

Copy link
Contributor

Choose a reason for hiding this comment

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

Since we don't have any control over the base image we cannot guaranty what's in it and what will be there the following day. As a result using dnf upgrade is the right way to go.
I would argue that this line could have been merged with the next one, making it a single layer. But, since it's a test image, it's not that important.

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.

4 participants