Skip to content

Commit 32eeb86

Browse files
committed
Add PIP_INDEX_URL env var to support custom index URL/mirror
Currently, Python S2I images use default pypi.python.org to get all required packages during deployment process. However, there is a need to allow users to use custom index URL (mirror) to get the packages. This option can speed up deployment process. The PIP_INDEX_URL env var which is already available in pip can be used for that purposes. The information of PIP_INDEX_URL is added to the README files to mark the availability of this option. Signed-off-by: Vu Dinh <vdinh@redhat.com>
1 parent 6790d0f commit 32eeb86

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

2.7/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ a `.s2i/environment` file inside your source code repository.
130130
Set this variable to a non-empty value to inhibit the execution of 'manage.py migrate'
131131
when the produced image is run. This only affects Django projects.
132132
133+
* **PIP_INDEX_URL**
134+
135+
Set this variable to use a custom index URL or mirror to download required packages
136+
during build process. This only affects packages listed in requirements.txt.
137+
133138
Source repository layout
134139
------------------------
135140

3.3/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ file inside your source code repository.
130130
Set this variable to a non-empty value to inhibit the execution of 'manage.py migrate'
131131
when the produced image is run. This only affects Django projects.
132132
133+
* **PIP_INDEX_URL**
134+
135+
Set this variable to use a custom index URL or mirror to download required packages
136+
during build process. This only affects packages listed in requirements.txt.
137+
133138
Source repository layout
134139
------------------------
135140

3.4/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ file inside your source code repository.
130130
Set this variable to a non-empty value to inhibit the execution of 'manage.py migrate'
131131
when the produced image is run. This only affects Django projects.
132132
133+
* **PIP_INDEX_URL**
134+
135+
Set this variable to use a custom index URL or mirror to download required packages
136+
during build process. This only affects packages listed in requirements.txt.
137+
133138
Source repository layout
134139
------------------------
135140

3.5/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ file inside your source code repository.
130130
Set this variable to a non-empty value to inhibit the execution of 'manage.py migrate'
131131
when the produced image is run. This only affects Django projects.
132132
133+
* **PIP_INDEX_URL**
134+
135+
Set this variable to use a custom index URL or mirror to download required packages
136+
during build process. This only affects packages listed in requirements.txt.
137+
133138
Source repository layout
134139
------------------------
135140

0 commit comments

Comments
 (0)