aboutsummaryrefslogtreecommitdiff
path: root/doc/source/admin
diff options
context:
space:
mode:
authorJason <jasonanderson@uchicago.edu>2019-01-10 17:48:15 -0600
committerMichal Nasiadka <mnasiadka@gmail.com>2023-01-02 08:52:02 +0100
commitd079dd67e3b6f3cca560444809e0d6cedad9d9d3 (patch)
tree57da9db5f2814e2104c87846223f8c89a7bd36fd /doc/source/admin
parent8585495f451ca8d1a719e550d63949f4142cf4e6 (diff)
downloadkolla-d079dd67e3b6f3cca560444809e0d6cedad9d9d3.tar.gz
kolla-d079dd67e3b6f3cca560444809e0d6cedad9d9d3.zip
Add locals_base option
This option allows you to define 'locals' style dependencies as relative to a $locals_base variable, similar to how $tarballs_base works. This can help you avoid defining the same hard-coded path in kolla-build, and instead pass it to kolla via a flag. Similar to $tarballs_base, this works via oslo_config's existing interpolation functionality[1]. Example usage: [DEFAULT] locals_base = /opt/openstack [neutron-base] type = local location = $locals_base/neutron/neutron-stable-rocky.tar.gz [1]: https://docs.openstack.org/oslo.config/latest/reference/configuration-files.html#option-value-interpolation Change-Id: I8670db4dde4dac26df28502637eadc6b854261cf
Diffstat (limited to 'doc/source/admin')
-rw-r--r--doc/source/admin/image-building.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/source/admin/image-building.rst b/doc/source/admin/image-building.rst
index e38687361..de5f4d8e8 100644
--- a/doc/source/admin/image-building.rst
+++ b/doc/source/admin/image-building.rst
@@ -149,6 +149,19 @@ The ``kolla-build.conf`` file could look like this:
Note that the name of the section should exactly match the image name
you are trying to change source location for.
+If using the ``local`` source type, the ``--locals-base`` flag can be used to
+define a path prefix, which you can reference in the config.
+
+.. path etc/kolla/kolla-build.conf
+.. code-block:: ini
+
+ [DEFAULTS]
+ locals_base = /home/kolla/src
+
+ [heat-base]
+ type = local
+ location = $locals_base/heat
+
.. _dockerfile-customisation:
Dockerfile customisation