Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Want To Install A Local Package Using Our Package Index, But I'M Struggling With Trying To Make Pip Trust This Host. If I Want To Install It In My Venv I Can Just Pass The

Hi, I want to install a local package using our package index, but I'm struggling with trying to make pip trust this host. If I want to install it in my venv I can just pass the --trusted-host flag..is there a way to pass this to the clearml agent? I've already added the extra_index_url in the clearml.conf file..but adding the trusted-host entry didn't have any effect

  
  
Posted 2 years ago
Votes Newest

Answers 14


are you referring to extra_docker_shell_ scrip t SuccessfulKoala55 ?

  
  
Posted 2 years ago

that worked, thanks!!

  
  
Posted 2 years ago

Hi MuddySquid7 , you can use the extra bash script setting to inject this configuration directly into the pip.conf file

  
  
Posted 2 years ago

the thing is that this runs before you create the virtual environment, so then in the new environment those settings are no longer there

  
  
Posted 2 years ago

sorry, in my case it's the default mode

  
  
Posted 2 years ago

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", ]

  
  
Posted 2 years ago

Do you mean an agent that's not using docker but virtualenv?

  
  
Posted 2 years ago

What do you mean by local agent?

  
  
Posted 2 years ago

that worked, thanks!!

  
  
Posted 2 years ago

exactly 🙂

  
  
Posted 2 years ago

oh right, it will try to use globals from /etc/pip.conf first and then from the virtualenv's pip.conf

  
  
Posted 2 years ago

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

  
  
Posted 2 years ago

can I see an example please?

  
  
Posted 2 years ago

and would it be possible to run it using the normal local agent?

  
  
Posted 2 years ago
667 Views
14 Answers
2 years ago
one year ago
Tags