-
Notifications
You must be signed in to change notification settings - Fork 17
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
install-from-bindep needs PIP_OPTS #46
Comments
I'm curious about what exactly someone's trying to do with this- you mention customizing constraints, but if you're worried about colliding with the existing |
Hello @nitzmahone! We needed to source some new collections in a recent run of ansible-builder in our network restricted environment. These new collections of course required some external python dependencies. In our environment, we have an Artifactory proxy for public PyPI. We added So the first half of our image build goes swimmingly and pulls Python dependencies from our internal Artifactory proxy, until it approaches the final stages of the Containerfile, where it hits To immediately overcome our issues in our build, we created an To your point, the chances of a collision of |
The design behavior that the multi-stage build implies (for better or worse, it's what our downstream builds need, but probably causes more problems than it solves for typical user cases) is that anything custom going on with the Python deps is handled during the Python build stage. That's the reason the Python build/install in Short answer (specific to what you're trying to accomplish): if you can get the additional requirements included during the Python build stage, the need for a custom index server in the final stage should go away entirely. Adding shared |
The install-from-bindep script should also incorporate
PIP_OPTS="${PIP_OPTS-}"
as is already done in the assemble script to allow for custom pip options.Current workaround is to set your own
ARG CONSTRAINTS=
in a Containerfile to use that var, which could get overwritten by the builderThe text was updated successfully, but these errors were encountered: