Installing Gitorious to CentOS 5.6 X64

270 views
Skip to first unread message

Philip Matuskiewicz

unread,
Jun 3, 2011, 7:08:38 PM6/3/11
to Gitorious
I thought it would be appropriate to post this to anyone who would
like a good step by step guide to installing Gitorious to their own
server since it took me several days to figure out.

http://famousphil.com/blog/2011/06/installing-gitorious-on-centos-5-6-x64/

Marius Mårnes Mathiesen

unread,
Jun 8, 2011, 8:25:49 AM6/8/11
to gito...@googlegroups.com
Philip,
Thanks a lot, looks really good! I'm jotting down a few comments here:

Gem installation: I don't think this is necessary, since we use Bundler these days. The only gem that should be required is the bundler gem (gem install bundler), after which `bundle install` should take care of the rest of the gems.

XSendFile configuration: For git over HTTP to work, you should probably add a XSendFilePath for where you keep your Git repositories on the server.

Skip SSL enforcement: There's a new option for disabling/enabling SSL in config/gitorious.yml. The sample file has a description and example of this. (No need for the SslRequirement.disable_ssl_check instruction, iirc).

Bonus points for the firewall instructions, I haven't seen any other guides mentioning this.

Again: great stuff, thanks a lot. If you feel up to it, it would be very helpful if you'd keep an eye on announcements of changes we make to Gitorious on this list; there is a big problem with install guides that become obsolete after a while.

Cheers,
- Marius

Philip Matuskiewicz

unread,
Jun 8, 2011, 1:59:42 PM6/8/11
to Gitorious
Thanks for the additional information. I spent a lot of time looking
at other install guides to try to piece together what actually is
required, I'm sure I had extra steps in there that weren't required,
but the documentation wasn't all that thorough in explaining what is
and isn't required.

I assumed that the bundler would install everything required, but for
some reason I hit a bunch of bugs in Ruby. I'm thinking that using
the bundler to install everything when I do the gem install phase
would eliminate most of these bugs I ran into (with what you told me),
so I will update my tutorial to reflect that (with a cautious note
since I have no way to test if that does actually work in practice).

I will also add an extra XSendFilePath directive to the repositories
folder.

I wasn't aware that Skip SSL Enforcement is an option now, I will
modify that in the tutorial.

Thank you for the firewall comments, I couldn't imagine leaving a
system entirely unprotected with software that I'm not entirely
familiar with.

I will try to keep up with the announcements but no guarantees, I
installed Gitorious as a proof of concept for a friend and he didn't
like it due to the lack of private repositories, so I'm back to SVN/
Trac. I tried modifying the code base to include private
repositories, but I gave up after a few hours because there were so
many options that would need to be changed (and I'm not a strong ruby
developer, I'm more of a PHP guy).

In the end, you have a great product, but I really wish it was
substantially easier to install and maintain!

Thanks!
Phil




On Jun 8, 8:25 am, Marius Mårnes Mathiesen
<marius.mathie...@gmail.com> wrote:
> On Sat, Jun 4, 2011 at 1:08 AM, Philip Matuskiewicz <p...@matthouse.us>wrote:
>
> > I thought it would be appropriate to post this to anyone who would
> > like a good step by step guide to installing Gitorious to their own
> > server since it took me several days to figure out.
>
> >http://famousphil.com/blog/2011/06/installing-gitorious-on-centos-5-6...
>
> Philip,
> Thanks a lot, looks really good! I'm jotting down a few comments here:
>
> *Gem installation*: I don't think this is necessary, since we use Bundler
> these days. The only gem that should be required is the bundler gem (gem
> install bundler), after which `bundle install` should take care of the rest
> of the gems.
>
> *XSendFile configuration*: For git over HTTP to work, you should probably
> add a XSendFilePath for where you keep your Git repositories on the server.
>
> *Skip SSL enforcement*: There's a new option for disabling/enabling SSL in

Marius Mårnes Mathiesen

unread,
Jun 9, 2011, 3:42:37 AM6/9/11
to gito...@googlegroups.com
On Wed, Jun 8, 2011 at 7:59 PM, Philip Matuskiewicz <ph...@matthouse.us> wrote:
In the end, you have a great product, but I really wish it was
substantially easier to install and maintain!

Thanks for the help and kind words. We'll be giving some extra attention to making the installation process a lot easier, there's no reason it should be as difficult as it is today!

Cheers,
- Marius

COUDER Christian

unread,
Jun 9, 2011, 11:31:31 AM6/9/11
to gito...@googlegroups.com


On 08/06/2011 14:25, Marius Mårnes Mathiesen wrote:
On Sat, Jun 4, 2011 at 1:08 AM, Philip Matuskiewicz <ph...@matthouse.us> wrote:
I thought it would be appropriate to post this to anyone who would
like a good step by step guide to installing Gitorious to their own
server since it took me several days to figure out.

http://famousphil.com/blog/2011/06/installing-gitorious-on-centos-5-6-x64/

Philip,
Thanks a lot, looks really good! I'm jotting down a few comments here:

Gem installation: I don't think this is necessary, since we use Bundler these days. The only gem that should be required is the bundler gem (gem install bundler), after which `bundle install` should take care of the rest of the gems.

Marius and Philip,

Yes, but raspell is not in the Gemfile. I wanted to provide a patch but I am not sure which version of raspell should be installed.

Thanks,
Christian.
 

*******************************

This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.

Philip Matuskiewicz

unread,
Jun 9, 2011, 1:29:51 PM6/9/11
to Gitorious
Christian,

I believe version 1.0 is what I installed (to get rid of an error that
kept coming up regarding raspell), but I could be wrong.

Phil

On Jun 9, 11:31 am, "COUDER Christian" <Christian.COU...@murex.com>
wrote:
> On 08/06/2011 14:25, Marius Mårnes Mathiesen wrote:
>
>         On Sat, Jun 4, 2011 at 1:08 AM, Philip Matuskiewicz <p...@matthouse.us> wrote:
>
>                 I thought it would be appropriate to post this to anyone who would
>                 like a good step by step guide to installing Gitorious to their own
>                 server since it took me several days to figure out.
>
>                http://famousphil.com/blog/2011/06/installing-gitorious-on-centos-5-6...

Charles Randall

unread,
Jun 9, 2011, 6:14:12 PM6/9/11
to gito...@googlegroups.com
Thank you, Philip.

Marius Mårnes Mathiesen

unread,
Jun 10, 2011, 2:24:53 AM6/10/11
to gito...@googlegroups.com
On Thu, Jun 9, 2011 at 5:31 PM, COUDER Christian <Christia...@murex.com> wrote:
Yes, but raspell is not in the Gemfile. I wanted to provide a patch but I am not sure which version of raspell should be installed.

Ah, interesting! We could add the raspell gem to the Gemfile, but it seems to require the aspell development headers to be installed, which would probably cause `bundle install` to fail hard on servers missing that library. I really love these C-based gems :-/

- Marius
Reply all
Reply to author
Forward
0 new messages