diff options
| author | Zuul <zuul@review.opendev.org> | 2026-07-30 21:22:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2026-07-30 21:22:19 +0000 |
| commit | 495b6b8fe437a06f32575b7308192ffc4f76f7b9 (patch) | |
| tree | 2a3e1131ae44f7376ed92f2610d9409597f5a0df /doc/source | |
| parent | 4b869009c3336ab0f68353e71fcef30dd4cf44b3 (diff) | |
| parent | 71867b8e57273ffcc26f4fedd84919b2608da3f2 (diff) | |
| download | kolla-495b6b8fe437a06f32575b7308192ffc4f76f7b9.tar.gz kolla-495b6b8fe437a06f32575b7308192ffc4f76f7b9.zip | |
Merge "Move PIP_* env variables to ARG and config"
Diffstat (limited to 'doc/source')
| -rw-r--r-- | doc/source/admin/image-building.rst | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/source/admin/image-building.rst b/doc/source/admin/image-building.rst index 4a2c6773b..3a40f5f6e 100644 --- a/doc/source/admin/image-building.rst +++ b/doc/source/admin/image-building.rst @@ -372,9 +372,22 @@ verification purposes. Python packages build options ----------------------------- -The block ``base_pip_conf`` in the ``base`` Dockerfile can be used to provide -the PyPI build customisation options via the standard environment variables -like ``PIP_INDEX_URL``, ``PIP_TRUSTED_HOST``, etc. +The PyPI mirror used during image builds can be configured directly in +``kolla-build.conf``: + +.. path /etc/kolla/kolla-build.conf +.. code-block:: ini + + [DEFAULT] + pip_index_url = https://pypi.example.com/simple + pip_trusted_host = pypi.example.com + pip_extra_index_url = https://wheels.example.com/simple + +These options set the ``PIP_INDEX_URL``, ``PIP_TRUSTED_HOST``, and +``PIP_EXTRA_INDEX_URL`` ARG variables in the base image via the +``base_pip_conf`` Dockerfile block. The ``pip_extra_index_url`` option is +optional. For further customisation, the block ``base_pip_conf`` can be +overridden via the template_override mechanism. To override PYPI upper-constraints of all OpenStack images, you can define the source location of openstack-base. in ``kolla-build.conf``. |
