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] Further Docker images footprints improvements #4184

Conversation

Coduz
Copy link
Contributor

@Coduz Coduz commented Jan 27, 2025

This PR amis to further improve Docker images optimisation to reduce footprint of the images.

Optimisations have the following results

Container Before After
kapua/java-base 591 MB 545 MB
kapua/jetty-base 639 MB 573 MB
kapua/kapua-sql 595 MB 549 MB
kapua/kapua-events-broker 848MB 802 MB
kapua/kapua-api 905MB 838 MB
kapua/kapua-job-engine 873MB 806 MB
kapua/kapua-broker-artemis 943MB 897 MB
kapua/kapua-service-authentication 716MB 670 MB
kapua/kapua-consumer-lifecycle 730MB 684 MB
kapua/kapua-consumer-telemetry 721MB 675 MB

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

Related Issue
None

Description of the solution adopted
Optimization performed:

  1. run microdnf clean all to remove all microdnf packages metadata
  2. removed /opt/jetty/demo-base directory, not needed in our jetty-base image

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 28, 2025
@Coduz Coduz marked this pull request as ready for review January 28, 2025 09:20
@Coduz Coduz merged commit 171c17d into eclipse-kapua:develop Jan 28, 2025
27 checks passed
@Coduz Coduz deleted the feat-furtherDockerImagesFootprintImprovements branch January 28, 2025 09:20
@Coduz Coduz changed the title Feat further docker images footprint improvements ✨ [Docker] Further Docker images footprints improvements Jan 28, 2025
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