Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
963f44f8
Commit
963f44f8
authored
Dec 02, 2019
by
Wei-Meng Lee
Committed by
Achilleas Pipinellis
Dec 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update external container registry instructions
parent
5290f535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
13 deletions
+26
-13
doc/administration/packages/container_registry.md
doc/administration/packages/container_registry.md
+26
-13
No files found.
doc/administration/packages/container_registry.md
View file @
963f44f8
...
...
@@ -457,36 +457,40 @@ If Registry is enabled in your GitLab instance, but you don't need it for your
project, you can disable it from your project's settings. Read the user guide
on how to achieve that.
##
Disable Container Registry but use
GitLab as an auth endpoint
##
Use an external container registry with
GitLab as an auth endpoint
**Omnibus GitLab**
You can use GitLab as an auth endpoint
and use a non-bundled Container R
egistry.
You can use GitLab as an auth endpoint
with an external container r
egistry.
1.
Open
`/etc/gitlab/gitlab.rb`
and set necessary configurations:
```
ruby
gitlab_rails
[
'registry_enabled'
]
=
true
gitlab_rails
[
'registry_host'
]
=
"registry.gitlab.example.com"
gitlab_rails
[
'registry_port'
]
=
"5005"
gitlab_rails
[
'registry_api_url'
]
=
"http://localhost:5000"
gitlab_rails
[
'registry_path'
]
=
"/var/opt/gitlab/gitlab-rails/shared/registry"
gitlab_rails
[
'registry_issuer'
]
=
"omnibus-gitlab-issuer"
```
1.
A certificate keypair is required for GitLab and the Container Registry to
communicate securely. By default Omnibus GitLab will generate one keypair,
which is saved to
`/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key`
.
When using a non-bundled Container Registry, you will need to supply a
custom certificate key. To do that, add the following to
`/etc/gitlab/gitlab.rb`
NOTE:
**Note:**
`gitlab_rails['registry_enabled'] = true`
is needed to enable GitLab's
Container Registry features and authentication endpoint. GitLab's bundled
Container Registry service will not be started even with this enabled.
1.
A certificate-key pair is required for GitLab and the external container
registry to communicate securely. You will need to create a certificate-key
pair, configuring the external container registry with the public
certificate and configuring GitLab with the private key. To do that, add
the following to
`/etc/gitlab/gitlab.rb`
:
```
ruby
gitlab_rails
[
'registry_key_path'
]
=
"/custom/path/to/registry-key.key"
# registry['internal_key'] should contain the contents of the custom key
# file. Line breaks in the key file should be marked using `\n` character
# Example:
registry
[
'internal_key'
]
=
"---BEGIN RSA PRIVATE KEY---
\n
MIIEpQIBAA
\n
"
# Optionally define a custom file for Omnibus GitLab to write the contents
# of registry['internal_key'] to.
gitlab_rails
[
'registry_key_path'
]
=
"/custom/path/to/registry-key.key"
```
NOTE:
**Note:**
...
...
@@ -496,7 +500,16 @@ You can use GitLab as an auth endpoint and use a non-bundled Container Registry.
`/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key`
and will populate
it.
1.
Save the file and
[
reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the changes to take effect.
1.
To change the container registry URL displayed in the GitLab Container
Registry pages, set the following configurations:
```
ruby
gitlab_rails
[
'registry_host'
]
=
"registry.gitlab.example.com"
gitlab_rails
[
'registry_port'
]
=
"5005"
```
1.
Save the file and
[
reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the changes to take effect.
**Installations from source**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment