conda allows you to specify channels with an http protocol. conda files from a local machine into the pkgs_dir for each machine.Īdd a second layer of proxying. For multiple machines, maybe you could get by with a network share pkgs_dir or copying all the. For a single machine, the conda pkgs_dir should work pretty well. Since you referenced conda clean in your question, you are aware of this cache and must have some reason for not using it. Use conda's built-in support for local caching. Sonatype's Nexus repository manager also claims to proxy conda repositories in its documentation. offers such a server as a product, so you are unlikely to find much built-in support for this in the open source conda tools. Getting this set up is somewhat tricky because you have to generate a self-signed certificate and get it trusted by conda (using conda install -insecure might be all that is needed for conda). Use squid's ssl bump feature to have squid decrypt and re-encrypt the data passing through it. Options that you have available to you are: This traffic is already encrypted, so it can not be cached. In a basic configuration, squid can only pass SSL connections through from the client to the server. However, conda uses https to download its packages. It sounds like you likely have configured everything properly for proxying traffic through squid. How do I configure squidman to work with conda ? So I dialled those settings up to the max (well bigger than the conda download) and tried again. There is a "maximum object size", maybe that prevents the conda downloads from being cached. Those are the same addresses as in the system proxy settings - which seem to work fine for browsing.Īnd hoping to see very fast download speeds for those python packages. This happens for both http and https websites and also if I enter an IP directly (no DNS in between). If I switch it off and try to browse the internet, I get an error message "The proxy server is refusing connections". I think that SquidMan is set up correctly. set the network settings to proxy both http and https at this address.installed SquidMan and set its host and port to 127.0.0.1:8080.How can I configure conda to use a caching proxy?
0 Comments
Leave a Reply. |