Hi MuddySquid7 , you can use the extra bash script setting to inject this configuration directly into the pip.conf file
are you referring to extra_docker_shell_
scrip
t
SuccessfulKoala55 ?
the thing is that this runs before you create the virtual environment, so then in the new environment those settings are no longer there
are you referring to
extra_docker_shell_
scrip
t
Correct
the thing is that this runs before you create the virtual environment, so then in the new environment those settings are no longer there
Actually that is better, because this is what we need to setup the pip before it is used. So instead of passing --trusted-host
just do:extra_docker_shell_script: ["echo \"[global] \n trusted-host = pypi.python.org pypi.org files.pythonhosted.org YOUR_SERVER_HERE\" >> /etc/pip.conf", ]
and would it be possible to run it using the normal local agent?
Do you mean an agent that's not using docker but virtualenv?
Well, this script setting is only for docker, but in the "default" mode, you're basically setting up the agent, so you can set the correct value to the pip.conf file when you set up the agent, once
oh right, it will try to use globals from /etc/pip.conf first and then from the virtualenv's pip.conf