[CentOS-devel] Request for feedback: CentOS-Atomic container

Mon Mar 27 16:28:02 UTC 2017
Baptiste Agasse <baptiste.agasse at lyra-network.com>

Hi,

----- Le 20 Mar 17, à 19:34, Karanbir Singh mail-lists at karan.org a écrit :

> hi
> 
> Alpha2: registry.centos.org/kbsingh/centos-atomic:7-alpha2
> 
> The CentOS Atomic Container is a minimal ( 30MB on disk ) image that can
> be used to host static content, and small footprint content that does
> not need the entire CentOS Linux Base image. This is also not meant to
> replace CentOS Linux Base image as the default, we want to make it
> available as an additional container base for apps that find it useful.
> 
> The main highlight is that it does not contain yum, but has microdnf.
> 
> I am looking for feedback, and some wider testing as well as
> recommendations on howto further reduce size,  before we move to
> release. You can consume this as :

This is very nice to see this :)

Maybe we can align the content of /usr/share/i18n/locale with the localedef --list-archive output:

centos-atomic:7-alpha2 image (unmodified):
bash-4.2# du -sh /usr/share/i18n/locales/
6.3M    /usr/share/i18n/locales/

bash-4.2# rm -f $(find /usr/share/i18n/locales/ -type f -print0 | grep -Fxvz -f <(localedef --list-archive | cut -d '.' -f1) | xargs -0)                                                                                                      
bash-4.2# du -sh /usr/share/i18n/locales/
12K     /usr/share/i18n/locales/

These files are provided by the glibc-common package so any update of this one will restore these files. This problem seems to be solved by https://bugzilla.redhat.com/show_bug.cgi?id=1238406 (Glibc locale subpackaging) which is not on EL7.

After squashing layers, we have this:
registry.centos.org/kbsingh/centos-atomic              7-alpha2            d9a1bafb8e8f        9 days ago           87.18 MB
registry.centos.org/kbsingh/centos-atomic              7-alpha3            466a18a77e90        11 seconds ago       81.41 MB

Have a nice day.

Regards.

> 
> docker run -t -i \
>  registry.centos.org/kbsingh/centos-atomic:7-alpha2 \
>  /bin/bash
> 
> regards
> 
> --
> Karanbir Singh
> +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
> GnuPG Key : http://www.karan.org/publickey.asc
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> https://lists.centos.org/mailman/listinfo/centos-devel

-- 
Baptiste AGASSE