Skip to content

Commit

Permalink
Updated documentation on added PIP_TRUSTED_HOST var
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantkashniyal authored and seldondev committed Sep 7, 2020
1 parent 860ad7e commit 69bc1f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,6 @@ examples/models/autoscaling/autoscaling_example.py
# testing
*.coverprofile
*.log

# vscode local history
.history/
14 changes: 14 additions & 0 deletions doc/source/python/python_wrapping_s2i.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,20 @@ Using s2i you can build directly from a git repo or from a local source folder.
s2i build <src-folder> seldonio/seldon-core-s2i-python3:1.2.3-dev <my-image-name>
```

Additional Environment Flags:

EXTRA_INDEX_URL

For installing packages from private/self-hosted PyPi registry

PIP_TRUSTED_HOST

For adding private/self-hosted unsecured PyPi registry by adding it to pip trusted-host

```bash
s2i build -e EXTRA_INDEX_URL=https://<pypi-user>:<pypi-auth>@mypypi.example.com/simple -e PIP_TRUSTED_HOST=mypypi.example.com <src-folder> seldonio/seldon-core-s2i-python3:1.2.3-dev <my-image-name>
```

Change to seldonio/seldon-core-s2i-python3 if using python 3.

An example invocation using the test template model inside seldon-core:
Expand Down

0 comments on commit 69bc1f4

Please sign in to comment.