The problem is that even when I mount the SSH key into the root home directory (e.g.,
/root/.ssh/id_rsa
with the correct permissions set to 400) I still encounter the same error.
The agent automatically mount's the .ssh folder from the host into the container, making sure all the permissions are set,
how can I run
pip install -e .
in general the agent will add the "working" dir into the PYTHONPATH so that you should not have to manually do "-e ."
That said if you must have it , just add -e .
to your "installed packages" section, should work 🤞
Hi @<1523701205467926528:profile|AgitatedDove14> ,
I set force_git_ssh_protocol: true
(leaving git_user and git_pass empty) because I want to use ssh_key-based authentication.
The problem is that even when I mount the SSH key into the root home directory (e.g., /root/.ssh/id_rsa
with the correct permissions set to 400) I still encounter the same error. I suspect that I might be doing something wrong, or perhaps the open-source version does not support this configuration. Could this be the case?
OK, I managed to do this via extra_docker_shell_script
option in values.yaml:
clearmlConfig: |-
sdk {
}
agent {
force_git_ssh_protocol: true
git_user: ""
git_pass: ""
extra_docker_shell_script: ["mkdir -p /root/.ssh", "cp /etc/ssh-key/..data/id_ed25519 /root/.ssh/", "ssh-keyscan -H bitbucket.mycompany.com >> /root/.ssh/known_hosts"]
}
And now I have another issue - how can I run pip install -e .
command? Is that possible to install packages from a local project path?
Hi @<1743079861380976640:profile|HighKitten20>
but when I try to use code stored in a GIT (Bitbucket) repo I got a repository cloning error, specifically
did you pass configure the git repo application/pass here: None
Hi Martin! About pip install -e .
- I had that made through agent.package_manager.extra_pip_install_flags flag like below:
agent {
package_manager: {
extra_pip_install_flags: ["-e", "." ],
}
}
Thanks for your help!