-
-
Notifications
You must be signed in to change notification settings - Fork 6
chown/chmod massively balloons the size of our docker images #961
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
Labels
Comments
This was referenced Mar 26, 2025
This was referenced Apr 3, 2025
All done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was a regression introduced in #849 (and its followups, tracked in stackabletech/issues#645).
When you
chmod
/chown
a file owned by a prior layer, its contents are copied into the new layer, even though they are identical. Since clients download the whole layer stack, they get to download both versions.As an experiment, removing the chmod/chowns from the nifi image (added in #890):
took the total image size from 5.4GiB to 1.6GiB (according to dive).
That aside, chowning all of /stackable is a tad overly aggressive. The products shouldn't need access to overwrite their own source code, for example.
The text was updated successfully, but these errors were encountered: