Replies: 2 comments 1 reply
-
Makes sense to me, I'd suggest submitting a PR so we can include it. |
Beta Was this translation helpful? Give feedback.
-
As there is a possibility that this could make debugging extremely difficult in a containerized operating environment, we will close this issue. |
Beta Was this translation helpful? Give feedback.
-
Dear Community Members,
Hello.
I regularly use the fluent-bit image (https://hub.docker.com/r/fluent/fluent-bit/) for business purposes on k8s.
Thank you for your continuous support.
In the development environment, I utilize the fluent-bit:debug image, while in the production environment, I use the non-debug image.
Recently, I noticed that the fluent-bit binary included in the non-debug image is around 44MB and contains debug information.
By removing this information, the size of the fluent-bit binary can be reduced to approximately 9MB.
As a result, I expect not only a lightweight container image but also a more secure environment.
This is an extremely experimental and personal endeavor, but for example, by modifying the Dockerfile as follows and building it, we can remove the debug information. Although it's a build for x86_64, the respective results are as follows:
Container image size built using the unmodified Dockerfile
Container image size built using the modified Dockerfile
Here are the points I would like to discuss:
but if there is a smarter way to achieve the same process, please let me know :)
(I am not used to this type of work and this may seem like a poor change...)
Thank you for reading this far.
Have a nice day.
Beta Was this translation helpful? Give feedback.
All reactions