Regarding #2 - the SSH keys for the host machines can simply be updated in GitLab/GitHub etc. so that each most machine (and so each docker executed on that machine that has the
.ssh dir mounted inside it) can clone any of your repositories
So, did I understand you correctly? I create single ssh key and place it to ~/.ssh dir of all workers. After that anyone, who wants to run task on their repo, should add this key to their user in their repo.
Thanks! This works for me except one thing. This work only with keys wit standard names. If keys have non-standard names should I deal with starting ssh-agent and ssh-add inside docker or there is simple way ?
Yeah, that's a possible solution 🙂
I think you'll have to do that inside the docker - you can use the custom bash script in order to do that (see https://github.com/allegroai/clearml-agent/blob/742cbf57670815a80a0c502ef61da12521e1e71f/docs/clearml.conf#L140 for a global agent setting, or you can do that specifically for a task using the execution container configuration)