2015-02-12 07:07:47 +00:00
|
|
|
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,
|
2015-06-18 09:24:13 +00:00
|
|
|
we cache many of the inputs to the build process.
|
|
|
|
|
2015-09-17 10:14:24 +00:00
|
|
|
The cache location is read from ``DIB_IMAGE_CACHE``. :ref:`developing-elements`
|
2015-06-18 09:24:13 +00:00
|
|
|
describes the interface within disk-image-builder for caching.
|
|
|
|
|
|
|
|
When invoking disk-image-builder, the ``--offline`` option will instruct
|
2015-09-17 10:14:24 +00:00
|
|
|
disk-image-builder to not refresh cached resources. Alternatively you can set
|
|
|
|
``DIB_OFFLINE=1``.
|
2015-02-12 07:07:47 +00:00
|
|
|
|
|
|
|
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
|
2015-06-18 09:24:13 +00:00
|
|
|
offline mode. For more information about setting up a squid proxy, consult the
|
|
|
|
`TripleO documentation
|
2018-01-18 07:20:37 +00:00
|
|
|
<https://docs.openstack.org/tripleo-incubator/latest/devtest_setup.html>`_.
|
2015-02-12 07:07:47 +00:00
|
|
|
|
|
|
|
Base images
|
|
|
|
-----------
|
|
|
|
|
2015-09-17 10:14:24 +00:00
|
|
|
These are cached by the standard elements - :doc:`../elements/fedora/README`,
|
|
|
|
:doc:`../elements/redhat-common/README`, :doc:`../elements/ubuntu/README`,
|
|
|
|
:doc:`../elements/debian/README` and :doc:`../elements/opensuse/README`.
|
2015-02-12 07:07:47 +00:00
|
|
|
|
|
|
|
source-repositories
|
|
|
|
-------------------
|
|
|
|
|
2015-09-17 10:14:24 +00:00
|
|
|
Git repositories and tarballs obtained via the
|
|
|
|
:doc:`../elements/source-repositories/README` element will be cached.
|
2015-02-12 07:07:47 +00:00
|
|
|
|
|
|
|
PyPI
|
|
|
|
----
|
|
|
|
|
2015-09-17 10:14:24 +00:00
|
|
|
The :doc:`../elements/pypi/README` element will bind mount a PyPI mirror from
|
|
|
|
the cache dir and configure pip and easy-install to use it.
|