Это старая версия документа!
Gitlab
Установка
$ curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash $ sudo EXTERNAL_URL="https://gitlab.da57.ru" apt install gitlab-ce=16.9.1-ce.0
Заголовок
$ systemctl stop gitlab-runner $ systemctl stop gitlab-runsvdir $ systemctl start gitlab-runsvdir $ gitlab-ctl reconfigure
Установка Runners
- ssh
- parallels
- kubernetes
- docker-autoscaler
- custom
- virtualbox
- docker - Запуск runner / обработчика внутри контейнера (ubuntu:latest, )
- docker-windows
- docker+machine
- instance
- shell - Запуск runner / обработчика внутри машины с gitlab-runner
Migrate all
$ gitlab-rake gitlab:uploads:migrate:all $ gitlab-rake db:migrate:status $ gitlab-rake db:migrate $ gitlab-ctl hup puma $ gitlab-ctl restart sidekiq
Check / Проверка / Инструменты
$ gitlab-rake gitlab:gitlab_shell:check $ gitlab-rake gitlab:gitaly:check $ gitlab-rake gitlab:sidekiq:check $ gitlab-rake gitlab:incoming_email:check $ gitlab-rake gitlab:ldap:check $ gitlab-rake gitlab:app:check $ gitlab-rake gitlab:check $ gitlab-rake cache:clear $ gitlab-rake gitlab:check SANITIZE=true $ gitlab-ctl restart
PostgresQL
$ gitlab-psql -d gitlabhq_production
$ \l
pg_hba.conf
host all all 0.0.0.0/0 trust
postgresql.conf
listen_addresses = '127.0.0.1'