Files
diskimage-builder/doc/source/developer/caches.rst
Takashi Kajinami e2ae3fd481 Drop remaining reference to TripleO
... because the project was retired. (In addition tripleo-incubator was
retired further long ago.)

Change-Id: Iaf6200ee5db1a8a9645f2d02a85194b27583854b
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-29 22:34:30 +09:00

1.3 KiB

Caches and offline mode

Since retrieving and transforming operating system image files, git repositories, Python or Ruby packages, and so on can be a significant overhead, we cache many of the inputs to the build process.

The cache location is read from DIB_IMAGE_CACHE. developing-elements describes the interface within disk-image-builder for caching.

When invoking disk-image-builder, the --offline option will instruct disk-image-builder to not refresh cached resources. Alternatively you can set DIB_OFFLINE=1.

Note that we don't maintain operating system package caches, instead depending on your local infrastructure (e.g. Squid cache, or an APT or Yum proxy) to facilitate caching of that layer, so you need to arrange independently for offline mode.

Base images

These are cached by the standard elements - ../elements/fedora/README, ../elements/redhat-common/README, ../elements/ubuntu/README, ../elements/debian/README and ../elements/opensuse/README.

source-repositories

Git repositories and tarballs obtained via the ../elements/source-repositories/README element will be cached.

PyPI

The ../elements/pypi/README element will bind mount a PyPI mirror from the cache dir and configure pip and easy-install to use it.