diskimage-builder/elements/dpkg
Gregory Haynes d2f4c3b843 Allow disabling apt-get clean
Sometimes users want to maintain the apt cache in their images.

Change-Id: Id49a04896cf3eeaf1557f1d644e4d8ba64716392
2015-03-06 17:07:29 +00:00
..
bin Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
cleanup.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
extra-data.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
finalise.d Allow disabling apt-get clean 2015-03-06 17:07:29 +00:00
pre-install.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
root.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
element-deps Standardise manifest creation and retrieval 2014-04-10 12:25:13 +01:00
README.rst Allow disabling apt-get clean 2015-03-06 17:07:29 +00:00

====
dpkg
====
Provide dpkg specific image building glue.

The ubuntu element needs customisations at the start and end of the image build
process that do not apply to RPM distributions, such as using the host machine
HTTP proxy when installing packages. These customisations live here, where they
can be used by any dpkg based element.

The dpkg specific version of install-packages is also kept here.

Environment Variables
---------------------

* DIB\_ADD\_APT\_KEYS: If an extra or updated apt key is needed then define
  DIB\_ADD\_APT\_KEYS with the path to a folder. Any key files inside will be
  added to the key ring before any apt-get commands take place.
* DIB\_APT\_LOCAL\_CACHE: You can use this variable to disable the internal cache
  of the /var/cache/apt/archives directory by setting it to 0. The default is to bind
  mount the $DIB_IMAGE_CACHE/apt/$DISTRO_NAME directory in
  /var/cache/apt/archives, this to cache the .deb files downloaded during the image
  creation.
* At the end of a dib run we clean the apt cache to keep the image size as
  small as possible. You can set DIB\_DISABLE\_APT\_CLEANUP=1 if you would
  like to prevent this.