-
Notifications
You must be signed in to change notification settings - Fork 42
fix: use openssl from Builder container to avoid run container dnf call #152
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Doug Edgar <[email protected]>
7e2a0a5 to
cf4ab82
Compare
|
Seems like rebasing PRs also has the effect of requesting reviews from everyone - I'll look into if this is intended behavior or not. |
|
@rhdedgar i think that's just the |
|
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite sure I understand the full rationale for this change, why was RUN microdnf install -y openssl && microdnf clean all needed in the first place?
Please clarify.
| COPY --from=builder /usr/bin/openssl /usr/bin/openssl | ||
| COPY --from=builder /lib64/libssl.so.3 /lib64/libssl.so.3 | ||
| COPY --from=builder /lib64/libcrypto.so.3 /lib64/libcrypto.so.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum this feels "dangerous", are the builder and final image the same? Same distro? Same glibc version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw how can we repro? I have no subscription and could install the package 🤔
$ podman run -ti --entrypoint=bash registry.access.redhat.com/ubi9/ubi-minimal:latest
Trying to pull registry.access.redhat.com/ubi9/ubi-minimal:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob sha256:73ac460760dbc07b4e932677ed1d86c86c51259cd8ea7c5f1d5b13c9dd3d9d59
Copying config sha256:f36340c5d8884dc930bfe0a7a5d3602b665e10569317ce1931b78e15444938b9
Writing manifest to image destination
Storing signatures
[root@09c1c81257d6 /]# microdnf install -y openssl && microdnf clean all
(microdnf:8): librhsm-WARNING **: 08:52:00.526: Found 0 entitlement certificates
(microdnf:8): librhsm-WARNING **: 08:52:00.529: Found 0 entitlement certificates
Downloading metadata...
Downloading metadata...
Downloading metadata...
Package Repository Size
Installing:
openssl-1:3.2.2-6.el9_5.1.aarch64 ubi-9-baseos-rpms 1.4 MB
Transaction Summary:
Installing: 1 packages
Reinstalling: 0 packages
Upgrading: 0 packages
Obsoleting: 0 packages
Removing: 0 packages
Downgrading: 0 packages
Downloading packages...
Running transaction test...
Installing: openssl;1:3.2.2-6.el9_5.1;aarch64;ubi-9-baseos-rpms
Complete.
(microdnf:65): librhsm-WARNING **: 08:52:02.258: Found 0 entitlement certificates
(microdnf:65): librhsm-WARNING **: 08:52:02.259: Found 0 entitlement certificates
Complete.
[root@09c1c81257d6 /]#
Avoids the issue where users without active RH subscriptions get a 403 when trying to install openssl via microdnf using the default repos.
Passes the
check-payloadtool.Closes
RHAIENG-844.