-
Notifications
You must be signed in to change notification settings - Fork 117
Can I use separate Redmine and Gitolite servers? #330
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
Comments
Nope.
It won't work. This is a recurring question so I'm gonna update the doc : Redmine and Gitolite must be on the same server as Redmine needs to access to repository files (through sudo) to display them within the interface. On the top of that, think about the latency you could have when you browse your repository ;) |
Hi ndarilek, I'm just looking at how I might deal with the same configuration (redmine in a docker container with the git repositories outside). If git/gitolite needs to be on the same machine I'm thinking that the way to go is to create a git user with matching userID in the container and then map the git account repositories directory within the container onto the same directory on the host server. Have you otherwise made progress or thought of another way to get this working? |
Hello, I've managed to get this plugin working with docker on ubuntu (with an ubuntu image) and phusion using a modified version of sameersbn's setup, install and init scripts. The tricks are to:
Of course this is not particularly portable. A better solution would be to put git and gitolite in their own container (perhaps a data container), sync user name and ID and them map volumes between the two but I've not yet tried to do this because I do not yet need the portability. I also got this working with postfix, redis and memcached on the host server by configuring both, on the host, to listen to the docker interface and the pass the addresses of these to the container as environment variables. Caches, files, etc are all mapped onto a volume within a particular user's home directory as per sameersbn's setup. Next I'm going to try to move the git repo directories into this same directory so that I can isolate all aspects of the install. I might try a data container for git/gitolite as well, next month. I've not yet tested hooks but everything else seems to work and with the exception of redmine_git_hosting not being able to tell what version of gitolite is in use, everything seems to work. |
looks like I spoke too soon. When I go to a user page I get the following error: Started GET "/users/8" for 90.155.11.150 at 2015-02-23 17:55:16 +0000 ActionView::Template::Error (No builder for format ): so something is not quite right... or it's possible that my install is itself broken and docker has noting to do with this. so close and yet so far! |
This turned out to be a bug and has been resolved. redmine_git_hosting now works fine now in docker if installed as noted above. |
Apologies if there's a better forum for these types of questions, but the docs aren't too clear.
I'm hosting my environment in Docker containers. Redmine runs in one, and Gitolite runs in another. The installation instructions look fine until I reach the sudo step. At that point, it occurs to me that the expectation might be that Gitolite and Redmine are running on the same server. In my setup, it doesn't make sense to configure sudo because Redmine is accessing Gitolite remotely. I thought it just modified the gitolite-admin repository and maybe ran the occasional gitolite subcommand via SSH.
Is this supported? What happens if I don't configure sudo? I'm mainly interested in creating repositories from Redmine and managing user SSH keys.
The text was updated successfully, but these errors were encountered: