diskimage-builder/elements/centos-minimal
Ian Wienand 4585955a8b Remove yum chroot caching
Every run we are doing a full tar.gz of the chroot environment that
never gets used.

It's not suitable for CI since we use fresh images each time there.

The cache in general isn't really isn't a very safe thing to have
around, because there's no invalidation procedure and no real way to
make one -- we've no guarantee that a new chroot build even moments
after a previous one wouldn't bring in or different packages, etc (of
course this is *unlikely*, but the longer you go between builds the
worse the problem becomes.  Also, tons of packages get installed after
this not from any cache, so potential speed-up is rather marginal.

Debian turned this off with I58fc485aacacaa17243bf9ce760ed91256d1f182.
However, given the reasons above and it's complete lack of testing, I
don't see this as useful.

If we really want this type of thing, I think we should come up with a
way to use a persistent external yum/dnf cache that yum/dnf keeps in
sync with it's usual invalidation rules.

Change-Id: I66789c35db75c41bc45ea1ad2e26f87456de4e4d
2016-12-20 13:56:46 +11:00
..
environment.d Revert "Revert "Pre-install pip/virtualenv packages"" 2016-07-14 13:54:41 +10:00
test-elements/build-succeeds Add tests for building *-minimal images 2016-08-22 16:53:32 +00:00
yum.repos.d Port centos-minimal to yum-minimal 2015-04-22 20:34:48 -04:00
element-deps Remove EPEL as hardcoded dependency of centos elements 2016-09-12 11:42:55 -05:00
element-provides centos-minimal does not provide base 2016-03-10 13:51:08 +11:00
README.rst Remove yum chroot caching 2016-12-20 13:56:46 +11:00

==============
centos-minimal
==============
Create a minimal image based on CentOS 7.

Use of this element will require 'yum' and 'yum-utils' to be installed on
Ubuntu and Debian. Nothing additional is needed on Fedora or CentOS.

By default, ``DIB_YUM_MINIMAL_CREATE_INTERFACES`` is set to enable the
creation of ``/etc/sysconfig/network-scripts/ifcfg-eth[0|1]`` scripts to
enable DHCP on the ``eth0`` & ``eth1`` interfaces.  If you do not have
these interfaces, or if you are using something else to setup the
network such as cloud-init, glean or network-manager, you would want
to set this to ``0``.