Podman binary size #23049
-
Hi, does anyone know why binaries I build locally are much bigger than the release binaries? Where can I find the build tags used for releases, or is this also dependent on environment variables, I tried setting the same environment variables as in cirrus.yml but this didn't change anything. Thank you for helping me! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Local builds have have a lot of debug symbols in the binary. Package builds generally remove the debug info (often place it in a separate package). |
Beta Was this translation helpful? Give feedback.
Unfortunately go binaries are very large. Podman is big application with all the features it has. I am not aware of any other tricks to drastically decrease its size.
Overall there is much that could be done within the podman code itself. Analyse the code and find out big packages and try to remove/replace them with smaller alternatives. I have done so many times in the past but the rate of new code is high and most easy to fix binary size problems have been addresses so doing this work is difficult.
If you only target a specific use case you could try to just delete all code paths you don't care about but of course this requires deep knowledge of podman and even then would not really be …