User Tools

Site Tools



GitLab Installation

  • In order to install GitLab follow instructions here:
    • At end of step 6, sidekiq won't be checked:
      Checking Sidekiq ...
      Running? ... no
        Try fixing it:
        sudo -u gitlab -H bundle exec rake sidekiq:start RAILS_ENV=production
        For more information see:
        doc/install/ in section "Install Init Script"
        see log/sidekiq.log for possible errors
        Please fix the error above and rerun the checks.
      Checking Sidekiq ... Finished
      • You have to create the pids} folder, while in gitlab}:
        sudo -u gitlab -H mkdir tmp/pids/
        sudo chmod -R u+rwX  tmp/pids/
      • And then restart sidekiq:
        sudo -u gitlab -H bundle exec rake sidekiq:start RAILS_ENV=production
  • I use Apache in conjunction with unicorn.
    • Configure unicorn to listen to TCP connections:
        - listen 8080 # listen to port 8080 on all TCP interfaces
      listen ""  # listen to port 8080 on the loopback interface
      listen "#{app_dir}/tmp/sockets/gitlab.socket"
    • Configure Apache in conjunction with unicorn:
      <VirtualHost *:443>
      	DocumentRoot /home/gitlab/gitlab/public
      	<Directory /home/gitlab/gitlab/public>
      		AllowOverride All
      		Options -MultiViews
      	<Proxy balancer://unicornservers>
      	RewriteEngine on
      	RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
      	RewriteRule ^/(.*)$ balancer://unicornservers%{REQUEST_URI} [P,QSA,L]
      	ProxyPass /uploads !
      	ProxyPass / balancer://unicornservers/
      	ProxyPassReverse / balancer://unicornservers/
      	ProxyPreserveHost on
      	<Proxy *>
      		Order deny,allow
      		Allow from all
      	#   SSL Engine Switch:
      	#   Enable/Disable SSL for this virtual host.
      	SSLEngine on
      	#   Specify certificate file and private key file for SSL.
      	SSLCertificateFile	/etc/ssl/certs/
      	SSLCertificateKeyFile	/etc/ssl/private/
      	SSLCertificateChainFile	/etc/ssl/certs/terena-ca-chain.pem
      	ErrorLog ${APACHE_LOG_DIR}/gitlab/error.log
      	LogLevel warn
      	CustomLog ${APACHE_LOG_DIR}/gitlab/access.log combined
  • Populate satellites folder, in gitlab}:
    sudo -u gitlab -H bundle exec rake gitlab:satellites:create RAILS_ENV=production
tutorials/gitlab.txt · Last modified: 2020/07/20 09:16 (external edit)