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

✨ [Docker] Migrated from rockylinux:8 to rockylinux:8-minimal base image #4181

Merged

Conversation

Coduz
Copy link
Contributor

@Coduz Coduz commented Jan 24, 2025

This PR changes the base image used to build our java-base image for Docker containers

Main scope of this change is to shrink our image footprint

Container Size Rockylinux 8 Size Rockylinux 8-minimal
kapua/java-base 850 MB 640MB
kapua/jetty-base 899 MB 689 MB
kapua/kapua-sql 855 MB 645 MB
kapua/kapua-events-broker 1.11 GB 897 MB
kapua/kapua-api 1.17 GB 955 MB
kapua/kapua-job-engine 1.13 GB 922 MB
kapua/kapua-broker-artemis 1.2 GB 992 MB
kapua/kapua-service-authentication 976 MB 766 MB
kapua/kapua-consumer-lifecycle 990 MB 780 MB
kapua/kapua-consumer-telemetry 981 MB 771 MB

The java-base image shrinks of 210 MB, which are saved for each of the Docker container that are using it (all of them).

Moving to 8-minimal also decreases the number of vulnerabilities for our Docker images.

Screenshot 2025-01-27 at 15 12 43

Related Issue
None

Description of the solution adopted

  • Changed the base image from rockylinux:8 to rockylinux:8-minimal
  • Updated yum commands to microdnf
  • Installed required packages no longer in the base image
    • tar
    • gzip
    • shadow-utils

Screenshots
None

Any side note on the changes made
None

@Coduz Coduz added the Enhancement This PR/Issue improves an part of Kapua label Jan 24, 2025
@Coduz Coduz force-pushed the feat-migrationToRockylinux8-minimal branch from ec7db13 to a6708c9 Compare January 27, 2025 14:05
@Coduz Coduz merged commit a02727c into eclipse-kapua:develop Jan 27, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This PR/Issue improves an part of Kapua
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant