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
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
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
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/
>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
> 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
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
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
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
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
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
11 matches
Mail list logo