conan-package-tools icon indicating copy to clipboard operation
conan-package-tools copied to clipboard

Running behind a HTTP proxy

Open sourcedelica opened this issue 8 years ago • 6 comments

I did some testing of ConanMultiPackager locally today at work where there is a firewall. I am using CONAN_DOCKER_IMAGE and it hangs at the pip install step. I can get pip to work through the proxy using pip --proxy=xxx but not using environment variables. Is there a way around this? If not could you add another environment variable that is used as the --proxy argument to pip (or something more general)?

sourcedelica avatar Sep 21 '17 20:09 sourcedelica

But only for pip? what about the conan downloads?

lasote avatar Sep 22 '17 09:09 lasote

Good point - my particular project doesn't have any requirements so the pip problem was the only one I had seen (so far), so we could use a proxy variable that would be used anyplace a proxy is needed.

sourcedelica avatar Sep 22 '17 17:09 sourcedelica

Could you configure that machine to connect using the proxy at OS level?

lasote avatar Oct 02 '17 16:10 lasote

Is that possible using Linux?

sourcedelica avatar Oct 03 '17 03:10 sourcedelica

Yes, definitely, you can configures proxies at the system level, every distro will have its way, here is the ubuntu one, for example: https://help.ubuntu.com/stable/ubuntu-help/net-proxy.html

memsharded avatar Oct 24 '17 02:10 memsharded

Hi @sourcedelica !

Did you solve your problem?

You could configure Docker to use your custom proxy:

https://docs.docker.com/network/proxy/

uilianries avatar Mar 14 '19 20:03 uilianries