Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Derek Carr
Why does 1 not matter? If a cluster orchestrator charges your container for its image size, it would matter. There are some Kubernetes users in the community that have that goal and want to charge local disk usage to the pod (including shared image layers). Admittedly, there are other users

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Muayyad AlSadi
I gave up shrinking locales because they compress will There are two use cases for small images 1. The on disk format, which is shared between multiple containers via layers 2. When export tarball and pass it. For 1. Fat does not matter and for 2 it also does not matter because ~100mb becomes

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread David O.
A little self-plug: Here's how I do it: https://github.com/oszi/dockerfiles/blob/master/_base/make-rootfs.sh It's designed to run in a container of the same OS (F23 can build F24) so it can be built anywhere... Anyway, apart from systemd and locales I'm in favor of fat base images when an entire

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Muayyad AlSadi
given a fake-runtime, yum --nogpgcheck --installroot=$OSROOT --releasever=23 --setopt tsflags=nodocs install httpd I got the following [root@fedora osroot]# for i in . usr/lib/ usr/lib/locale/ usr/share/locale/ usr/share/i18n; do du -sm $i ; done 227. 109usr/lib/ 109usr/lib/locale/

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Muayyad AlSadi
>localedef --prefix $OSROOT --list-archive xargs localedef --prefix $OSROOT --delete-from-archive the line was localedef --prefix $OSROOT --list-archive | grep -v en_US | xargs localedef --prefix $OSROOT --delete-from-archive

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Muayyad AlSadi
> I hacked up some quick Dockerfiles for this particular example (httpd) and the end result is that alpine was still smaller - 8.652 MB vs. 232.8 MB you can use this trick to strip ~100MB localedef --prefix $OSROOT --list-archive xargs localedef --prefix $OSROOT --delete-from-archive mv

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Joe Brockmeier
On Mon, Jun 20, 2016 at 1:57 PM, Micah Abbott wrote: > > As this is just one example, it would still be interesting to see how > other apps compare. > Interesting, thanks for that. I would say this is an area where we need to improve, but we also need folks to show up with

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Micah Abbott
On 06/20/2016 09:38 AM, Joe Brockmeier wrote: Have we published any comparisons of an Alpine image "fully loaded" (e.g., with the actual tools) vs. Fedora, etc.? AIUI, when you actually install things like Apache httpd, or whatnot the comparison looks much closer. I hacked up some quick

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread David O.
I've been building my own base images with dnf/yum using installroot. While I get better results, the images are still large and the biggest waste of space is systemd. I'm not sure what happened with fakesystemd or systemd-container but I liked the idea of replacing systemd with something that

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Muayyad AlSadi
I was socked by the size of the following file ls -lh /usr/lib/locale/locale-archive -rw-r--r--. 1 root root 107M Jun 8 11:07 /usr/lib/locale/locale-archive but I was socked more that even after stripping it the total compressed image size did not change at all (because more of the content of

Re: [atomic-devel] Smaller fedora & centos images

2016-06-20 Thread Joe Brockmeier
On Thu, Jun 16, 2016 at 9:50 AM, Tim St. Clair wrote: > My primary concern is mind-share and "precedent eventually leads to > practice". If all the images and examples presented say : > > ' FROM: alpine ' > > We've lost the hearts and minds of developers, and we are no