Using cibuildwheel on a Gitlab instance behind a corporate proxy #1663
leducvin
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am writing this to document how I could use cibuildwheel behind a corporate proxy (at least in Gitlab).
I couldn't find any information in the docs about this, nor in the Github issues ou discussions.
Initially, I would get an HTTP 504 error (that was from my proxy). As I progressed with configuring this, I also got HTTP 502, and pip errors basically saying pip couldn't find packages.
Anyway, what I found is that I need to define the proxy environment variables and make sure they are passed to the container doing the build.
In particular,
NO_PROXY
must containdocker
for the python container to be able to reach the dind container.Also, I needed to implement docker-specific proxy configuration in
.docker/config.json
. I usedCIBW_BEFORE_ALL
for this.Beta Was this translation helpful? Give feedback.
All reactions