Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
develop:gitlab [2025/01/30 02:36] – [ci/cd] mirocowdevelop:gitlab [2025/11/11 00:58] (текущий) – [Обслужинание] mirocow
Строка 1: Строка 1:
 +{{tag>[gitlab ]}}
 +
 ====== Gitlab ====== ====== Gitlab ======
  
Строка 13: Строка 15:
 ==== Установка в контейнере ==== ==== Установка в контейнере ====
  
-Контейнер 
 <code yaml> <code yaml>
 version: "3.7" version: "3.7"
Строка 107: Строка 108:
 ===== Обслужинание ===== ===== Обслужинание =====
  
-<code bash> +  * [[develop:gitlab:generate-tokens]] 
-$ systemctl stop gitlab-runner +  * [[develop:gitlab:db]] 
-$ systemctl stop gitlab-runsvdir +  * [[develop:gitlab:db:gitaly]] 
-$ systemctl start gitlab-runsvdir +  * [[develop:gitlab:permissions]] 
-gitlab-ctl reconfigure +  * [[develop:gitlab:fixed]]
-</code>+
  
-==== Migrate all ==== 
- 
-В контейнере 
-<code bash> 
-$ gitlab-rake gitlab:uploads:migrate:all 
-$ gitlab-rake db:migrate:status 
-$ gitlab-rake db:migrate 
-$ gitlab-ctl hup puma 
-$ gitlab-ctl restart sidekiq 
-</code> 
- 
-==== Check / Проверка / Инструменты ==== 
- 
-В контейнере 
-<code bash> 
-$ 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 
-</code> 
  
 ==== PostgresQL ==== ==== PostgresQL ====
Строка 159: Строка 133:
 </code> </code>
  
-===== Ошибки ===== 
  
-==== ci/cd ====+===== Документация ===== 
 + 
 +  * [[https://docs.gitlab.com/ee/administration/package_information/postgresql_versions.html|Какая версия PostgreSQL подходит к версии Gitlab]] 
  
-<code sql> 
-- Clear project tokens 
-UPDATE projects SET runners_token = null, runners_token_encrypted = null; 
--- Clear group tokens 
-UPDATE namespaces SET runners_token = null, runners_token_encrypted = null; 
--- Clear instance tokens 
-UPDATE application_settings SET runners_registration_token_encrypted = null; 
--- Clear key used for JWT authentication 
--- This may break the $CI_JWT_TOKEN job variable: 
--- https://gitlab.com/gitlab-org/gitlab/-/issues/325965 
-UPDATE application_settings SET encrypted_ci_jwt_signing_key = null; 
--- Clear runner tokens 
-UPDATE ci_runners SET token = null, token_encrypted = null; 
-</code>