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
Hey, How Can I Add A Private Key In Order To Let The Clearml Agent To Clone From A Private Git Repository?

hey, how can I add a private key in order to let the clearml agent to clone from a private git repository?

  
  
Posted 3 years ago
Votes Newest

Answers 28


I'm wondering if this will also work for pip install from a private pypi server

  
  
Posted 3 years ago

at the end it's just another env var

  
  
Posted 3 years ago

I hope I didn't miss anything

  
  
Posted 3 years ago

anyways, it works. I will update the issue

  
  
Posted 3 years ago

Yey! nice!

  
  
Posted 3 years ago

Thanks you!

  
  
Posted 3 years ago

Yea sure

  
  
Posted 3 years ago

seems like I miss configured something of course. /secrets is mounted to the agent but not to the pod template 🙂

  
  
Posted 3 years ago

You need to mount it to ~/clearml.conf (i.e. /root/clearml.conf)

  
  
Posted 3 years ago

I'll do that

  
  
Posted 3 years ago

I agree

  
  
Posted 3 years ago

Thank you for helping! 🙂

  
  
Posted 3 years ago

OK I added:

- name: TRAINS_CONFIG_FILE value: "/secrets/clearml.conf"
to my pod template, and this file exists and mounted as expected but it still fails. I will see if I missed something

  
  
Posted 3 years ago

at the end it's just another env var

It should work GIT_SSH_COMMAND is used by pip

  
  
Posted 3 years ago

well, it's only when adding a 

  • name

 to the template

Nonetheless it should not break it 🙂

  
  
Posted 3 years ago

You need to mount it to 

~/clearml.conf

 (i.e. /root/clearml.conf)

I have overridden that with the env var

  
  
Posted 3 years ago

Should I make a new issue or just reply on the one I mentioned above?

Maybe a new issue with the merge, and then the hack+fix? what do you think?

  
  
Posted 3 years ago

Yea definitely

  
  
Posted 3 years ago

Should I make a new issue or just reply on the one I mentioned above?

  
  
Posted 3 years ago

BTW: there is still the bug with the env merging, correct ?

  
  
Posted 3 years ago

AgitatedDove14 actually I had to set something like:

- env: - name: PIP_INDEX_URL valueFrom: secretKeyRef: name: pip-index-url-secret key: pip-index-url-key - name: GIT_SSH_COMMAND value: "ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"

  
  
Posted 3 years ago

If it cannot find the Task ID I'm guessing it is trying to connect to the demo server and not your server (i.e. configuration is missing)

  
  
Posted 3 years ago

AgitatedDove14 any chance you are familiar with this error: https://github.com/allegroai/clearml-agent/issues/55 ?

  
  
Posted 3 years ago

oh cool, didn't know about this one

  
  
Posted 3 years ago

Interesting point

  
  
Posted 3 years ago

well, it's only when adding a - name to the template

  
  
Posted 3 years ago