InfoGrab Docs

신규 설치를 위한 컨테이너 레지스트리 메타데이터 데이터베이스

요약

인스턴스의 컨테이너 레지스트리 메타데이터 데이터베이스를 활성화합니다. 새 컨테이너 레지스트리에 대한 메타데이터 데이터베이스를 활성화합니다. /etc/gitlab/gitlab.rb를 편집하고 enabled를 true로 설정하여 데이터베이스를 활성화합니다:

인스턴스의 컨테이너 레지스트리 메타데이터 데이터베이스를 활성화합니다.

메타데이터 데이터베이스 활성화#

새 컨테이너 레지스트리에 대한 메타데이터 데이터베이스를 활성화합니다.

사전 요건:

  • 레지스트리에 이미지가 푸시되지 않은 새 컨테이너 레지스트리가 있어야 합니다.

데이터베이스를 활성화하려면:

  1. /etc/gitlab/gitlab.rb를 편집하고 enabledtrue로 설정하여 데이터베이스를 활성화합니다:

    registry['database'] = {
      'enabled' => true,
    }
    
  2. 파일을 저장하고 GitLab을 재구성합니다.

사전 요건:

  • 레지스트리에 이미지가 푸시되지 않은 새 컨테이너 레지스트리가 있어야 합니다.
  • 외부 데이터베이스를 생성합니다.

데이터베이스를 활성화하려면:

  1. 데이터베이스 연결 세부 정보를 추가하여 /etc/gitlab/gitlab.rb를 편집하되, 메타데이터 데이터베이스가 비활성화된 상태로 시작합니다:

    registry['database'] = {
      'enabled' => false,
      'host' => '<registry_database_host_placeholder_change_me>',
      'port' => 5432, # Default, but set to the port of your database instance if it differs.
      'user' => '<registry_database_username_placeholder_change_me>',
      'password' => '<registry_database_placeholder_change_me>',
      'dbname' => '<registry_database_name_placeholder_change_me>',
      'sslmode' => 'require', # See the PostgreSQL documentation for additional information https://www.postgresql.org/docs/16/libpq-ssl.html.
      'sslcert' => '</path/to/cert.pem>',
      'sslkey' => '</path/to/private.key>',
      'sslrootcert' => '</path/to/ca.pem>'
    }
    
  2. 파일을 저장하고 GitLab을 재구성합니다.

  3. 데이터베이스 마이그레이션을 적용합니다.

  4. /etc/gitlab/gitlab.rb를 편집하고 enabledtrue로 설정하여 데이터베이스를 활성화합니다:

    registry['database'] = {
      'enabled' => true,
      'host' => '<registry_database_host_placeholder_change_me>',
      'port' => 5432, # Default, but set to the port of your database instance if it differs.
      'user' => '<registry_database_username_placeholder_change_me>',
      'password' => '<registry_database_placeholder_change_me>',
      'dbname' => '<registry_database_name_placeholder_change_me>',
      'sslmode' => 'require', # See the PostgreSQL documentation for additional information https://www.postgresql.org/docs/16/libpq-ssl.html.
      'sslcert' => '</path/to/cert.pem>',
      'sslkey' => '</path/to/private.key>',
      'sslrootcert' => '</path/to/ca.pem>'
    }
    

이제 모든 작업에 메타데이터 데이터베이스를 사용할 수 있습니다!

신규 설치를 위한 컨테이너 레지스트리 메타데이터 데이터베이스

Tier: Free, Premium, Ultimate
Offering: GitLab Self-Managed
원문 보기
요약

인스턴스의 컨테이너 레지스트리 메타데이터 데이터베이스를 활성화합니다. 새 컨테이너 레지스트리에 대한 메타데이터 데이터베이스를 활성화합니다. /etc/gitlab/gitlab.rb를 편집하고 enabled를 true로 설정하여 데이터베이스를 활성화합니다:

인스턴스의 컨테이너 레지스트리 메타데이터 데이터베이스를 활성화합니다.

메타데이터 데이터베이스 활성화#

새 컨테이너 레지스트리에 대한 메타데이터 데이터베이스를 활성화합니다.

사전 요건:

  • 레지스트리에 이미지가 푸시되지 않은 새 컨테이너 레지스트리가 있어야 합니다.

데이터베이스를 활성화하려면:

  1. /etc/gitlab/gitlab.rb를 편집하고 enabledtrue로 설정하여 데이터베이스를 활성화합니다:

    registry['database'] = {
      'enabled' => true,
    }
    
  2. 파일을 저장하고 GitLab을 재구성합니다.

사전 요건:

  • 레지스트리에 이미지가 푸시되지 않은 새 컨테이너 레지스트리가 있어야 합니다.
  • 외부 데이터베이스를 생성합니다.

데이터베이스를 활성화하려면:

  1. 데이터베이스 연결 세부 정보를 추가하여 /etc/gitlab/gitlab.rb를 편집하되, 메타데이터 데이터베이스가 비활성화된 상태로 시작합니다:

    registry['database'] = {
      'enabled' => false,
      'host' => '<registry_database_host_placeholder_change_me>',
      'port' => 5432, # Default, but set to the port of your database instance if it differs.
      'user' => '<registry_database_username_placeholder_change_me>',
      'password' => '<registry_database_placeholder_change_me>',
      'dbname' => '<registry_database_name_placeholder_change_me>',
      'sslmode' => 'require', # See the PostgreSQL documentation for additional information https://www.postgresql.org/docs/16/libpq-ssl.html.
      'sslcert' => '</path/to/cert.pem>',
      'sslkey' => '</path/to/private.key>',
      'sslrootcert' => '</path/to/ca.pem>'
    }
    
  2. 파일을 저장하고 GitLab을 재구성합니다.

  3. 데이터베이스 마이그레이션을 적용합니다.

  4. /etc/gitlab/gitlab.rb를 편집하고 enabledtrue로 설정하여 데이터베이스를 활성화합니다:

    registry['database'] = {
      'enabled' => true,
      'host' => '<registry_database_host_placeholder_change_me>',
      'port' => 5432, # Default, but set to the port of your database instance if it differs.
      'user' => '<registry_database_username_placeholder_change_me>',
      'password' => '<registry_database_placeholder_change_me>',
      'dbname' => '<registry_database_name_placeholder_change_me>',
      'sslmode' => 'require', # See the PostgreSQL documentation for additional information https://www.postgresql.org/docs/16/libpq-ssl.html.
      'sslcert' => '</path/to/cert.pem>',
      'sslkey' => '</path/to/private.key>',
      'sslrootcert' => '</path/to/ca.pem>'
    }
    

이제 모든 작업에 메타데이터 데이터베이스를 사용할 수 있습니다!