Closed gilles-o closed 1 year ago
Well, it's not a bug per-say (everything works fine). But the resulting image increased from approx 450MB to 1.6GB
vmware/kube-fluentd-operator v1.17.3 c1351c35fa41 6 days ago 1.6GB vmware/kube-fluentd-operator v1.17.2 cc64d99e80d1 2 weeks ago 1.59GB vmware/kube-fluentd-operator v1.17.1 3488a080e858 2 months ago 462MB vmware/kube-fluentd-operator v1.17.0 a194afe6e7d2 3 months ago 462MB
a more reasonable image, around the initial size.
I think this is induced by the Dockerfile refactoring 3e30d83 that:
&& rm -rf $RUBY_PATH/lib/ruby/gems/3.1.4/cache $RUBY_PATH/lib/ruby/gems/3.1.4/doc/ /usr/share/doc /root/.bundle/cache should read: && rm -rf $RUBY_PATH/lib/ruby/gems/3.1.0/cache $RUBY_PATH/lib/ruby/gems/3.1.0/doc/ /usr/share/doc /root/.bundle/cache
&& rm -rf $RUBY_PATH/lib/ruby/gems/3.1.4/cache $RUBY_PATH/lib/ruby/gems/3.1.4/doc/ /usr/share/doc /root/.bundle/cache
&& rm -rf $RUBY_PATH/lib/ruby/gems/3.1.0/cache $RUBY_PATH/lib/ruby/gems/3.1.0/doc/ /usr/share/doc /root/.bundle/cache
Inside the resulting image:
Just alone this would permit to divide the image size by 2. Thanks !
No response
Could you create a MR with this 😄. If not I will do next week
@gilles-o thanks for reporting this. We are looking into fixing it.
This has been fixed in the 1.18 release
Thanks folks ;-)
Describe the bug
Well, it's not a bug per-say (everything works fine). But the resulting image increased from approx 450MB to 1.6GB
Reproduction steps
Expected behavior
a more reasonable image, around the initial size.
I think this is induced by the Dockerfile refactoring 3e30d83 that:
&& rm -rf $RUBY_PATH/lib/ruby/gems/3.1.4/cache $RUBY_PATH/lib/ruby/gems/3.1.4/doc/ /usr/share/doc /root/.bundle/cache
should read:&& rm -rf $RUBY_PATH/lib/ruby/gems/3.1.0/cache $RUBY_PATH/lib/ruby/gems/3.1.0/doc/ /usr/share/doc /root/.bundle/cache
Inside the resulting image:
Just alone this would permit to divide the image size by 2. Thanks !
Additional context
No response