Update Docker Configuration and Base Image#11
Update Docker Configuration and Base Image#11arkaprovob wants to merge 2 commits intospaship:masterfrom
Conversation
vim editor will be used for editing files inside the container and coreutils added for ln and other basic utilities
kunyan
left a comment
There was a problem hiding this comment.
I think the core reason for this change are upgrade RHEL8 to RHEL9.
I'm OK with all the changes.
Just a small suggestion. we only need this image with a stable runtime
We should follow KISS principle
Forgive me don't know the other reasons for all of changes. please merge it if it needed
| @@ -1,26 +1,24 @@ | |||
| FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3-298.1618432845 | |||
| FROM registry.access.redhat.com/ubi9:9.2-755 | |||
There was a problem hiding this comment.
If there are no important dependency requirement, I still recommend use the UBI minimal image.
| Name | Size | Uncompressed Size |
|---|---|---|
| ubi9 | 74.5 MB | 206.9 MB |
| ubi9-minimal | 36.1 MB | 92.9 MB |
Less size means less code and less security leak.
I think ubi8-mininal has been verified all features we need are supported.
PS: I have't check if there has any duplicate packages had been installed in ubi base image, but will install again along with httpd installation.
IMO, this is not a big problem, but we should choose the better one for our situation
There was a problem hiding this comment.
Are you talking about this ?
registry.access.redhat.com/ubi9/ubi-minimal:9.2-750.1696515534
There was a problem hiding this comment.
Yes, this is the latest version of ubi9 minimal https://catalog.redhat.com/software/containers/ubi9-minimal/61832888c0d15aff4912fe0d?architecture=amd64&image=651ecb34cd44fe7d45c78c47&container-tabs=overview
There was a problem hiding this comment.
registry.access.redhat.com/ubi9-minimal:9.2-750.1696515534
Made several key improvements to our Docker setup to enhance performance, usability, and security:
Dockerfile Refactoring:
Editor and Utilities Update:
vimas the default editor for editing files inside the container. This will improve the user experience for developers who are accustomed to usingvim.coreutilsto provide essential utilities such aslnand other basic commands. This ensures that our container has the necessary tools for fundamental operations.Base Image Update for Security: