diskimage-builder/elements
Gonéri Le Bouder eca59b2e97 dpkg: local cache for .deb files
With this patch, /var/cache/apt/archives directory content is preserved.
The directory is actually a bind mount of the
~/.cache/image-create/apt/$DISTRO_NAME directory, much like what we do
for ccache.
You can use DIB_APT_LOCAL_CACHE=0 to disable this behavior.

This trivial change improve performance A LOT (>30%), even if a local
HTTP proxy because:
 - there is no need to copy again and again the same files
 - we avoid network latency

The patch has been tested with Debian and Ubuntu with every elements
from the tripleo-image-elements repository, the final size of the cache
directory is about 700MB per distribution subdirectory.

Change-Id: I4fab499493f734c7c546d4d23b1a98f0e7523a39
2014-06-10 17:20:37 +02:00
..
apt-conf set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
apt-sources set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
baremetal set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
base 4 spaces indent 2014-05-10 11:17:29 +02:00
cache-url 4 spaces indent 2014-05-10 11:17:29 +02:00
cloud-init-datasources Add new cloud-init-datasources element 2014-05-29 21:54:59 -07:00
cloud-init-nocloud Add new cloud-init-datasources element 2014-05-29 21:54:59 -07:00
debian Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
debian-systemd set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
debian-upstart set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
deploy-baremetal Merge "Remove the temporary deploy element after rename" 2014-05-22 10:48:50 +00:00
deploy-ironic set -e all the things 2014-04-25 17:38:51 -05:00
deploy-kexec add some missing \n at end of file 2014-05-06 13:43:53 +02:00
dhcp-all-interfaces 4 spaces indent 2014-05-10 11:17:29 +02:00
dib-run-parts 4 spaces indent 2014-05-10 11:17:29 +02:00
disable-selinux/post-install.d set -e all the things 2014-04-25 17:38:51 -05:00
dkms 4 spaces indent 2014-05-10 11:17:29 +02:00
dpkg dpkg: local cache for .deb files 2014-06-10 17:20:37 +02:00
dracut-network 4 spaces indent 2014-05-10 11:17:29 +02:00
fedora Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
hwburnin Make sorting of ramdisk init elements explicit. 2013-11-15 17:18:34 +00:00
hwdiscovery set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
local-config 4 spaces indent 2014-05-10 11:17:29 +02:00
manifests set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
mellanox set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
modprobe-blacklist set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
opensuse Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
package-installs Support declarative package installs/uninstalls 2014-05-01 08:47:14 -04:00
pip-cache set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
pkg-map Add pkg-map element. 2014-05-28 12:21:44 -04:00
pypi 4 spaces indent 2014-05-10 11:17:29 +02:00
ramdisk Merge "Ensure we can read the kernel out." 2014-05-20 03:18:42 +00:00
redhat-common Merge "add some missing \n at end of file" 2014-05-28 00:40:57 +00:00
rhel Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
rhel7 Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
rpm-distro 4 spaces indent 2014-05-10 11:17:29 +02:00
selinux-permissive add some missing \n at end of file 2014-05-06 13:43:53 +02:00
serial-console set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
source-repositories Add support for source-repos gerrit refs 2014-05-23 16:00:22 +01:00
stable-interface-names set -e all the things 2014-04-25 17:38:51 -05:00
ubuntu Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
vm 4 spaces indent 2014-05-10 11:17:29 +02:00
yum Stop using bash arrays for whitelisting in yum 2014-05-22 19:05:28 +10:00
zypper set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00