Closed hammerhead closed 1 year ago
Not sure about the integration test failure, passes locally for me. The same error occurred on master
as well a few times lately as per https://github.com/crate/docker-crate/actions/workflows/test.yml
Hi Niklas.
The crash
CLI is bundled with the OCI image, and it may need the OpenSSL package. If it would only be about the root certificate bundle, we could look into using the certifi
package [^1], but I guess openssl
will be a real runtime dependency for the Python SSL bindings?
With kind regards, Andreas.
[^1]: - https://github.com/earthobservations/wetterdienst/issues/827#issuecomment-1454804618
Unrelated to this patch, I've spotted this on the CI run:
AssertionError: b'ls: cannot access /crate-*: No such file or directory\n' != b"ls: cannot access '/crate-*': No such file or directory\n"
-- https://github.com/crate/docker-crate/actions/runs/4416371380/jobs/7740683329#step:5:57
Within GH-206, we needed 0ed7191 to compensate for a different output first, but then have been able to remove it with 7135142 again, after AlmaLinux apparently changed something. It looks like they changed it back to the previous behavior?
I just realised that openssl
is actually installed by default already, as part of the base image. yum install -y openssl
only updates it.
Nevertheless, the openssl
package seems very limited, besides tons of man pages, it really only provides the executables make-dummy-cert
, renew-dummy-cert
, and renew-dummy-cert
. I couldn't spot any actual certificates.
As we don't do a general system-wide package upgrade, was there a specific reason to update openssl
in particular?
Looking at the old CentOS-based Dockerfile, openssl
was installed there as well. Are we just seeing a copy&paste leftover from CentOS here in the way that it was required to install openssl
explicitly on CentOS, but now on AlmaLinux it's already provided by default?
Here you can see it's already installed by default: https://hub.docker.com/layers/library/almalinux/9.1/images/sha256-0a7e7312fd88caf158361b97dc3c62e5cba46dff34b8ccf6baa9a3a66957baa8?context=explore:
Thanks for your investigations 💯. I've wrapped the outcome about omitting openssl
into another patch which further shrinks the image size based on your suggestions, and reported about it at https://github.com/crate/docker-crate/issues/219#issuecomment-1468418331.
On the failing CI task, you may want to rebase, now that GH-220 has been merged.
Will open a new PR.
Summary of the changes / Why this is an improvement
The
openssl
packages provides the following files:None of these files appear to be used when building the image.
Open question: Is any cloud-related component depending on it?
Checklist