-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S2i build image with private pip repository #330
Comments
@jklaise ,Thanks in advance. |
@vincentarthur I've created a pull request #332 which enables you to use local Python wheels to install your runtime dependencies. This solution requires to put the wheels into a "whl" directory where your component source code lives. I understand this is not ideal as you probably want to reuse the same wheels for several components, we have an open issue for this (#324) but presently it seems non-trivial to extend the wrapping process to look for dependencies outside the local directory. You can test this by using the modified assemble script as a parameter at build time as described here: (https://github.com/openshift/source-to-image/blob/master/docs/user_guide.md) |
@jklaise Thanks for the PR. How about this ?
|
@vincentarthur thanks, that looks a lot cleaner. For some reason I couldn't make it work with the -v flag but it does work with the -i (inject directories) flag, so the syntax would be |
@vincentarthur you can now use the |
Currently for using S2i to build image for Seldon, it's going through Internet. However, in some cases, the network is only for intranet only which unable to reach Internet. So a new requirement would be -
S2i build image stage should be able to configure whether to use Local private repository for installing python libraries. (Both conda url and folders for .whl)
The text was updated successfully, but these errors were encountered: