AgitatedDove14 any chance you are familiar with this error: https://github.com/allegroai/clearml-agent/issues/55 ?
You mean to add the extra index url?
you could use :
https://github.com/allegroai/clearml-agent/blob/5f0d51d485629e9dfc2d826622524461e3fcae8a/docs/clearml.conf#L63
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)
at the end it's just another env var
It should work GIT_SSH_COMMAND
is used by pip
You need to mount it to
~/clearml.conf
(i.e. /root/clearml.conf)
I have overridden that with the env var
BTW: there is still the bug with the env merging, correct ?
well, it's only when adding a - name
to the template
seems like I miss configured something of course. /secrets
is mounted to the agent but not to the pod template 🙂
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
You need to mount it to ~/clearml.conf
(i.e. /root/clearml.conf)
Should I make a new issue or just reply on the one I mentioned above?
well, it's only when adding a
- name
to the template
Nonetheless it should not break it 🙂
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"
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?
anyways, it works. I will update the issue
I'm wondering if this will also work for pip install
from a private pypi server