GitLab CE Quick install for our rpm
General
Official Install Documentation
Repositories
- use the repositories from devel:languages:ruby and home:darix:apps
- zypper in –from home:darix:apps redis gitlab-ce gitlab-shell
config redis:
See also: /usr/share/doc/packages/redis/README.SUSE
$ cd /etc/redis
$ cp default.conf.example gitlab.conf
$ vi gitlab.conf
* daemonize no
* pidfile /var/run/redis/gitlab.pid
* logfile /var/log/redis/gitlab.log
* dir /var/lib/redis/gitlab/
$ install -d -m 0750 -o redis -g redis /var/lib/redis/gitlab/
$ chown root:redis gitlab.conf
$ sc start redis@gitlab
$ sc enable redis@gitlab
GitLab Shell
cd /usr/share/gitlab/shell/; cp config.yml{.example,}
- set up redis socket matching /etc/redis/gitlab.conf
- maybe enable
audit_usernames
(but see warning)
config rails app
- cd /srv/www/vhosts/gitlab-ce/
- configure database.yml (based on postgresql example)
- cp config/gitlab.yml.{example,}
- host, port, https, email_from in gitlab section
- optionally ldap settings
- cp config/resque.yml.{example,}
- adapt socket for redis. should match /etc/redis/gitlab.conf
export RAILS_ENV="${RAILS_ENV:=production}"
gitlab-ce-update
rake db:seed_fu
- check for new files which are now owned by root:root (e.g. .gitlab_shell_secret) they should be owned by root:gitlab with permissions
u=rw,g=r,o=
- make sure you have the symlink
.gitlab_shell_secret /srv/www/vhosts/gitlab-ce/.gitlab_shell_secret
- Configure git for gitlab user as seen in official docs
sc start gitlab-ce-unicorn gitlab-ce-sidekiq gitlab-workhorse
sc enable gitlab-ce-unicorn gitlab-ce-sidekiq gitlab-workhorse
Testing things
- ssh access
ssh -T gitlab@gitlab.suse.de
Welcome to GitLab, $yourusername!