-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pushing over SSH #47
Comments
I'm guessing I might need a |
I’m not entirely sure how you’re running the container, but in my K3s homelab I have my git repos on the host itself, and I push to it using the “git” user with a |
It does! This confirms my earlier thought lmao Guessing the |
Hm, I haven't tried running ssh in the container since I push to the underlying host's |
I'll try it! :D I'll report back if it works |
Well, ssh-ing into the container doesn't work. Shouldn't be surprised since I doubt there's a SSH Server running in there? It doesn't even have (ba)sh so I should've figured that out sooner lol Would you mind sharing the code for the way you push? As for general http auth, you could theoretically try and use a |
Oh, yeah, of course—there is no ssh inside the container. It's a very light image. There isn't much "code" to share. I have the git repos on a machine and push over ssh as you would anywhere else. This directory of bare git repositories gets mounted inside my legit container. legit itself doesn't deal with any of the ssh pushing. As for http auth, that isn't supported by legit (explicitly disabled). The recommended approach is what I described above. Bear in mind: legit is read-only. It will simply serve git repos in |
More of a question than an actual Issue, because I'm kinda lost.
How do I get pushing over SSH to work when using the Docker Image / docker compose?
The text was updated successfully, but these errors were encountered: