Server/GitLab

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen

GitLab ist eine OpenSource Software alternative zu Github.


Achtung

Dieser Artikel ist ein exemplarischer Artikel.

Es handelt sich hierbei nicht um die Instanz GitLab als Dienst für git vom StuRa. Der StuRa betriebt (derzeit) keinen derartigen Dienst. Das öffentliche Verwalten von Code findet bei Github statt.

Installation

Angeleitet von Installationsanleitung für die Installation aus dem Quellcode.

Die Installation wird auf einem FreeNAS 9.3-stable in einer Jail durchgeführt.

Abhängigkeiten

Installation der Packete erfolgt über pkg install

debian packages freebsd packages
build-essential
zlib1g-dev lzlib
libyaml-dev libyaml
libssl-dev openssl
libgdbm-dev gdbm
libreadline-dev readline
libncurses5-dev ncurses
libffi-dev libffi
curl curl
openssh-server
redis-server redis
checkinstall
libxml2-dev libxml2
libxslt-dev libxslt
libcurl4-openssl-dev make config curl
libicu-dev icu
logrotate logrotate
python-docutils py27-docutils
pkg-config rubygem-pkg-config
cmake cmake
libkrb5-dev krb5
nodejs node

pkg install lzlib libyaml openssl gdbm readline ncurses libffi curl redis libxml2 libxslt icu logrotate py27-docutils rubygem-pkg-config cmake krb5 node

Die Installation des Postfix servers findet nicht statt.

Ruby

gem install bundler --no-ri --no-rdoc

System User

Linux

adduser --disabled-login --gecos 'GitLab' git

FreeBSD

adduser
Username: git
Full name: GitLab
Uid (Leave empty for default):
Login group [git]:
Login group is git. Invite git into other groups? []:
Login class [default]:
Shell (sh csh tcsh git-shell nologin) [sh]: nologin
Home directory [/home/git]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username   : git                                                                
Password   : *****                                                              
Full Name  : GitLab                                                             
Uid        : 1001                                                               
Class      :                                                                    
Groups     : git                                                                
Home       : /home/git                                                          
Home Mode  :                                                                    
Shell      : /usr/sbin/nologin                                                  
Locked     : no                                                                 
OK? (yes/no): yes
adduser: INFO: Successfully added (git) to the user database.
Add another user? (yes/no): no

Weblink