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

$ apt update && \ apt install ca-certificates curl gnupg lsb-release -y && \ mkdir -p /etc/apt/keyrings && \ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \ apt update && \ apt install docker-ce-cli -y

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'