Easy way to setup GitLab with existing Gitolite configuration

mattmilten picture mattmilten · Jan 25, 2013 · Viewed 8.1k times · Source

I have an existing Gitolite configuration with many users and repositories. It is setup in the default way as the Gitolite installation guide suggests. Now I would like to add GitLab to be able to do code reviews and bug tracking.

What's the most convenient way to achieve this?

Answer

VonC picture VonC · Jan 25, 2013

Original answer (January 2013)

You can follow the standard installation, and indicate in your gitlab.yml config file the location of your gitolite repo, as well as the gitolite admin user.

However, GitLab requires from the user to register themselves in GitLab and copy their public ssh key.
That means you might need to adapt the way gitolite has stored existing gitolite users, since the name you have used is likely to be different than the name used by GitLab (it uses a name based on the login_email_auuid).


Update (August 2018, 5 years later):

As commented below by Thomas, a few months after this answer, GitLab released GitLab 5.0, without gitolite.

Now I would like to add GitLab to be able to do code reviews and bug tracking.
What's the most convenient way to achieve this?

These days (2018, GitLab 11.2.x), code review is supported through merge request (it has been so since a few years already).
See: