简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
NetApp StorageGRID与GitLab
贡献者
建议更改
作者:郑安杰
NetApp已使用GitLab对StorageGRID进行了测试。请参见下面的GitLab配置示例。 请参见 "GitLab对象存储配置指南" 了解详细信息。
对象存储连接示例
对于Linux软件包安装、这是的一个示例 connection
在合并表单中设置。编辑 /etc/gitlab/gitlab.rb
并添加以下行、替换所需的值:
# Consolidated object storage configuration
gitlab_rails['object_store']['enabled'] = true
gitlab_rails['object_store']['proxy_download'] = true
gitlab_rails['object_store']['connection'] = {
'provider' => 'AWS',
'region' => 'us-east-1',
'endpoint' => 'https://<storagegrid-s3-endpoint:port>',
'path_stype' => 'true',
'aws_access_key_id' => '<AWS_ACCESS_KEY_ID>',
'aws_secret_access_key' => '<AWS_SECRET_ACCESS_KEY>'
}
# OPTIONAL: The following lines are only needed if server side encryption is required
gitlab_rails['object_store']['storage_options'] = {
'server_side_encryption' => 'AES256'
}
gitlab_rails['object_store']['objects']['artifacts']['bucket'] = 'gitlab-artifacts'
gitlab_rails['object_store']['objects']['external_diffs']['bucket'] = 'gitlab-mr-diffs'
gitlab_rails['object_store']['objects']['lfs']['bucket'] = 'gitlab-lfs'
gitlab_rails['object_store']['objects']['uploads']['bucket'] = 'gitlab-uploads'
gitlab_rails['object_store']['objects']['packages']['bucket'] = 'gitlab-packages'
gitlab_rails['object_store']['objects']['dependency_proxy']['bucket'] = 'gitlab-dependency-proxy'
gitlab_rails['object_store']['objects']['terraform_state']['bucket'] = 'gitlab-terraform-state'
gitlab_rails['object_store']['objects']['pages']['bucket'] = 'gitlab-pages'