Helios
Posts: 4
Joined: Tue Dec 25, 2012 3:03 pm

GitLab

Thu Feb 07, 2013 9:27 am

Hi all, I wish to install GitLab (http://gitlabhq.com/) on my rPI, but I have been unsuccessful so far. I encounter problem when installing libv8 and therubyracer.

I saw that on GitHub there are some hints about this, but nothing final.

Is there anyone who succedeed, and can help me in doing so as well?

Helios
Posts: 4
Joined: Tue Dec 25, 2012 3:03 pm

Re: GitLab

Fri Feb 08, 2013 3:44 pm

I managed to finish the installation of GitLab: the error I got about therubyracer was avoided by commenting out that gem from the Gemfile and installing nodejs from the repositories.

EricWeber
Posts: 4
Joined: Tue Mar 19, 2013 3:24 pm

Re: GitLab

Tue Mar 19, 2013 3:30 pm

could you please explain how you didi it?
I can't make it work but I would love my own git-pi :D

Helios
Posts: 4
Joined: Tue Dec 25, 2012 3:03 pm

Re: GitLab

Tue Mar 19, 2013 8:31 pm

I just finished the installation, then it does not work.. and I think it's because the memory requirement are too high :(

EricWeber
Posts: 4
Joined: Tue Mar 19, 2013 3:24 pm

Re: GitLab

Thu Mar 21, 2013 6:38 pm

I'm thinking about just installing gitlist, a simple php solution, it is easier than getting all this Ruby working and use less cpu/memory I think

holczhauser
Posts: 1
Joined: Mon Jun 03, 2013 8:02 am

Re: GitLab

Mon Jun 03, 2013 8:04 am

Hi !

Did you find a working solution for this ? Because I would like to buy an rPI , a NAS. The repair should run gitLab which is going to handle the repositories throughout NAS.

So is the RPI strong enough to solve this problem ?

Thanks

Karoly

schwarzluft
Posts: 1
Joined: Wed Jun 19, 2013 2:10 am

Re: GitLab

Wed Jun 19, 2013 2:25 am

I installed GitLab using the instructions for default production installation with mysql and it's working fine.

re what Helios mentioned: immediately after the installation it seemed not to work for me as well, but observing the logs (gitlab/log/production.log) I found that gitlab was just compiling lots of javascript files (maybe triggered by first loading the website?) which took quite a while. Once the compiling finishes it works fine for me.

dpenezic
Posts: 99
Joined: Sat Dec 22, 2012 2:36 pm

Re: GitLab

Thu Aug 01, 2013 9:39 am

Hi,

may you point to URL with instruction you follow ... i just try with instruction on URL : https://github.com/gitlabhq/gitlabhq/bl ... llation.md ?

I stack on installation part with standard libv8 problem ... ( I have install libv8 and therubyracer to in local gem store).

Code: Select all

*** LOCAL GEMS ***
addressable (2.3.5)
bigdecimal (1.2.0)
builder (3.2.2)
bundler (1.3.5)
charlock_holmes (0.6.9.4)
diff-lcs (1.2.4)
excon (0.25.3)
gem-compiler (0.2.0)
heroku (2.39.5)
heroku-api (0.3.14)
i18n (0.6.1)
io-console (0.4.2)
json (1.7.7)
launchy (2.3.0)
libv8 (3.16.14.1 ruby armv6l-linux)
mime-types (1.23)
minitest (4.3.2)
multi_json (1.7.7)
multipart-post (1.2.0)
netrc (0.7.7)
psych (2.0.0)
rake (10.1.0, 10.0.4, 0.9.6)
rake-compiler (0.8.3)
rdoc (4.0.0)
ref (1.0.5)
rest-client (1.6.7)
rspec (2.14.1)
rspec-core (2.14.4)
rspec-expectations (2.14.0)
rspec-mocks (2.14.2, 2.14.1)
rspec-spies (2.1.4)
rubyzip (0.9.9)
test-unit (2.0.0.0)
therubyracer (0.12.0beta1)
thor (0.14.6)
vulcan (0.8.2)
TIA

Dubravko Penezic
by schwarzluft » Wed Jun 19, 2013 2:25 am
I installed GitLab using the instructions for default production installation with mysql and it's working fine.

dpenezic
Posts: 99
Joined: Sat Dec 22, 2012 2:36 pm

Re: GitLab

Fri Aug 02, 2013 6:35 am

Hi all,
just information that i finally install GitLAB 6.0 to my Raspberry Pi :) ... but i did it on very hectic way with lots of try and luck :D .

In very short description (hopefully i will have letter more precise path) :
1. follow instruction from https://github.com/gitlabhq/gitlabhq/bl ... llation.md
till step 6.
2. in separate directory install
  1. libv8 (https://github.com/cowboyd/libv8)
    use the newest version, because most issue with libv8 is in fact that old code wasnt prepared completely for ARM compiling, also gem repository politic dint yet implement the newest source, so it isnt possible to install it from gem (https://github.com/cowboyd/therubyracer/issues/257)
Note: I didnt sure yet if this is necessary step because i finally install node.js in letter steps
3. Continue to follow step 6. from https://github.com/gitlabhq/gitlabhq/bl ... llation.md till Install Gems(https://github.com/gitlabhq/gitlabhq/bl ... stall-gems) title.
4. Add missing configure file
In /home/git/gitlab run

Code: Select all

sudo -u git cp config/puma.rb.example config/puma.rb
(https://github.com/gitlabhq/gitlabhq/issues/3639)
5. Edit Gemfile and Gemfile.lock in /home/git/gitlab directory on the way to clear version of libv8 and therubyracer
My Gemfile and Gemfile.lock are in attachement.
6. Install node.js (http://stackoverflow.com/questions/8059 ... n-execjs-f)

Code: Select all

sudo apt-get install nodejs
6. Continue from title Install Gems(https://github.com/gitlabhq/gitlabhq/bl ... stall-gems)
Note: After all i did, maybe you dont need to use --deployment option, but i am not sure in that yet
7. When you first time access to page it will take very long time to response be patient .

Hope that will help someone :) ... i will refine this recepie next time when i will instal GitLAB to new RPi if neccery

Dubravko Penezic

Hellper:
http://rubygems.org/
Attachments
Gemfiles_20130802.tar.gz
(5.52 KiB) Downloaded 740 times

axos88
Posts: 7
Joined: Wed Sep 04, 2013 8:12 pm

Re: GitLab

Wed Sep 04, 2013 8:15 pm

What's the performance of gitlab on your pi?

I have been unsuccessful to start it now. It should be running, but it hogs the cpu at 100% for hours, and even with 512MB of swap it runs out of memory after that...

I installed execjs and nodejs instead of the problematic therubyracer though...

Regards,
Akos

dpenezic
Posts: 99
Joined: Sat Dec 22, 2012 2:36 pm

Re: GitLab

Wed Sep 04, 2013 10:54 pm

axos88 wrote:What's the performance of gitlab on your pi?
I am the only user on it, and with few request per day, and response is compared to virtual server on some virtualisation system.
I am satisfied with performance ... how ever if you need fast response with lot of request, RPi isnt good choice.

Regards,
DUbravko

axos88
Posts: 7
Joined: Wed Sep 04, 2013 8:12 pm

Re: GitLab

Thu Sep 05, 2013 8:34 am

Well I am the only user on it, and sometimes my clients will open issues.

I fixed the issue, had to increase the unicorn worker timeout from 30s to 3600s, because the first request takes about 10 minutes! to process.

After that the site is still very sluggish, not totally unusable, but i'm not pleased with the performance either... It can work for now though.
I am considering putting it on a shuttle pc though.

Is the speed you are experiencing acceptable? It takes about 5 seconds for a page to load for me... I suspect something is fishy with my RPi though...

Regards,

Leo Verto
Posts: 1
Joined: Fri Sep 20, 2013 10:43 pm

Re: GitLab

Fri Sep 20, 2013 10:46 pm

I set up GitLab using MySQL and Node.js on my Pi and it didn't work it all, I just time out when trying to connect.
Even if I would get it to work, I guess it just consumes too many resources to run anything else on the Pi.

Can I just delete specific folders to completely uninstall it or would resetting the Pi be the cleaner and more efficient way of doing this?

axos88
Posts: 7
Joined: Wed Sep 04, 2013 8:12 pm

Re: GitLab

Sat Sep 21, 2013 12:05 pm

You have to be *very* patient.

The first request takes about 15 minutes to complete for me. After that, it takes about 5 seconds for each page.
You will have to set the unicorn worker timeout accordingly to prevent it timeing out before completing the work, i set it to 7200.

I'm not sure how you can remove it, but I guess you just have to delete the whole thing.

Regards,
Akos

midnightcodr
Posts: 1
Joined: Sat Jan 11, 2014 5:24 pm

Re: GitLab

Sat Jan 11, 2014 5:35 pm

By following most of user dpenezic's instruction I installed the current stable version of Gitlab (6.4) onto my RPI (modelB, 512MB RAM). Also I can confirm that you don't have to install therubyracer gem if you have node.js installed. I am getting about 2-second page load speed, so it's not that bad. Detail of my installation can be found on my github blog: http://midnightcodr.github.io/blog/2014 ... pberry-pi/

dpenezic
Posts: 99
Joined: Sat Dec 22, 2012 2:36 pm

Re: GitLab

Sat Jan 11, 2014 6:01 pm

Hi,
thanks for information, and nice step-by-step tutorial.

Some time ago i add to my list to upgrade to latest version of GitLab on my RPi. Right now i will do that :).

Regards,
Dubravko Penezic
midnightcodr wrote:By following most of user dpenezic's instruction I installed the current stable version of Gitlab (6.4) onto my RPI (modelB, 512MB RAM). Also I can confirm that you don't have to install therubyracer gem if you have node.js installed. I am getting about 2-second page load speed, so it's not that bad. Detail of my installation can be found on my github blog: http://midnightcodr.github.io/blog/2014 ... pberry-pi/

mosser
Posts: 2
Joined: Tue Mar 11, 2014 8:25 am

Re: GitLab

Tue Mar 11, 2014 8:28 am

Hello fist post on the forum here. I've been fighting this gitlab installation

just wanted to know what image you are using if its raspbian since I'm using the unattanded net installer but when i compile ruby i get some errors related to openssl and cannot gem install bundle after.

kind regard Kasper

dpenezic
Posts: 99
Joined: Sat Dec 22, 2012 2:36 pm

Re: GitLab

Tue Mar 11, 2014 1:34 pm

Hi,

I use raspbian image from Raspberry Pi site without any aditional (non official) update. I did test steps from previous post in this thread, and everything was O.K. .

Regards,
Dubravko Penezic

marinj
Posts: 1
Joined: Fri Apr 17, 2015 8:30 am

Re: GitLab

Fri Apr 17, 2015 8:35 am

For Raspberry Pi 2 there is a package for Raspbian OS on GitLab alternative installation page, see https://about.gitlab.com/installation/. It should be pretty straight forward to install :)

Return to “Networking and servers”