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

Improve EFR32 Docker image used by Build example - EFR32 workflow #10033

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

electrocucaracha
Copy link
Collaborator

Problem

Hadolint tool helps to build Docker images following best practices. Using those guidelines can help to reduce the size of the image and speed up the pulling process during the CI execution.

Change overview

This change installs only the minimal dependencies needed for EFR32 image. As result the image size has been reduced from 4.6GB to 3.04GB

Testing

This was tested locally using the act tool ($ act -j efr32) using the Docker image built with these changes.

Some of these best practices are:
* Pin versions
* Avoid additional packages installation
* Clean all missing after apt command

Signed-off-by: Victor Morales <[email protected]>
@andy31415 andy31415 merged commit 12a35d8 into project-chip:master Sep 30, 2021
@andy31415
Copy link
Contributor

I merged this without a version change since I am rebuilding the images today, so version 0.5.8 will contain all changes.

@electrocucaracha - maybe for future improvements we should update all dockerfiles?

@electrocucaracha electrocucaracha deleted the improve_efr32_img branch September 30, 2021 14:47
@electrocucaracha
Copy link
Collaborator Author

I merged this without a version change since I am rebuilding the images today, so version 0.5.8 will contain all changes.

@electrocucaracha - maybe for future improvements we should update all dockerfiles?

@andy31415 I can submit all the changes in a single PR but I think will be hard to test them in the CI and detect any issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants