Skip to content

Enable S3 container registry storage

For this we need to migrate everything into S3. This is the action plan:

  • create an s3 bucket for this
  • use s3sync to start syncing the data (~800G, will take a while)
  • docker push a new image
  • put registry in read-only
  • do final s3sync
  • switch registry to s3 and make read-only
  • docker pull on old image
  • docker pull a new image from 2.
  • switch registry read-write
  • docker push a new v2 image
  • docker pull a new v2 image

Proposed configuration:

registry['storage'] = {
  'filesystem' => {
    'rootdirectory' => '/var/opt/gitlab/gitlab-rails/shared/registry'
  },
  'maintenance' => {
      'readonly' => {
        'enabled' => false
      }
  }
}

Useful links:

cc/ @northrup @ayufan @jnijhof @ahanselka