debian-mirror-gitlab/app/views/projects/registry/repositories/index.html.haml

50 lines
2.8 KiB
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
- page_title "Container Registry"
2018-03-17 18:26:18 +05:30
%section
.settings-header
%h4
2017-09-10 17:25:29 +05:30
= page_title
2016-06-02 11:05:42 +05:30
%p
2018-03-17 18:26:18 +05:30
= s_('ContainerRegistry|With the Docker Container Registry integrated into GitLab, every project can have its own space to store its Docker images.')
2017-09-10 17:25:29 +05:30
%p.append-bottom-0
= succeed '.' do
2018-03-17 18:26:18 +05:30
= s_('ContainerRegistry|Learn more about')
= link_to _('Container Registry'), help_page_path('user/project/container_registry'), target: '_blank'
.row.registry-placeholder.prepend-bottom-10
.col-lg-12
#js-vue-registry-images{ data: { endpoint: project_container_registry_index_path(@project, format: :json) } }
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
.row.prepend-top-10
.col-lg-12
2018-11-08 19:23:39 +05:30
.card
.card-header
2018-12-13 13:39:08 +05:30
= s_('ContainerRegistry|How to use the Container Registry')
2018-11-08 19:23:39 +05:30
.card-body
2018-03-17 18:26:18 +05:30
%p
- link_token = link_to(_('personal access token'), help_page_path('user/profile/account/two_factor_authentication', anchor: 'personal-access-tokens'), target: '_blank')
- link_2fa = link_to(_('2FA enabled'), help_page_path('user/profile/account/two_factor_authentication'), target: '_blank')
= s_('ContainerRegistry|First log in to GitLab’s Container Registry using your GitLab username and password. If you have %{link_2fa} you need to use a %{link_token}:').html_safe % { link_2fa: link_2fa, link_token: link_token }
%pre
docker login #{Gitlab.config.registry.host_port}
%br
2018-05-09 12:01:36 +05:30
%p
2018-10-15 14:42:47 +05:30
- deploy_token = link_to(_('deploy token'), help_page_path('user/project/deploy_tokens/index', anchor: 'read-container-registry-images'), target: '_blank')
2018-11-08 19:23:39 +05:30
= s_('ContainerRegistry|You can also use a %{deploy_token} for read-only access to the registry images.').html_safe % { deploy_token: deploy_token }
2018-05-09 12:01:36 +05:30
%br
2018-03-17 18:26:18 +05:30
%p
= s_('ContainerRegistry|Once you log in, you&rsquo;re free to create and upload a container image using the common %{build} and %{push} commands').html_safe % { build: "<code>build</code>".html_safe, push: "<code>push</code>".html_safe }
%pre
:plain
docker build -t #{escape_once(@project.container_registry_url)} .
docker push #{escape_once(@project.container_registry_url)}
%hr
%h5.prepend-top-default
= s_('ContainerRegistry|Use different image names')
%p.light
= s_('ContainerRegistry|GitLab supports up to 3 levels of image names. The following examples of images are valid for your project:')
%pre
:plain
#{escape_once(@project.container_registry_url)}:tag
#{escape_once(@project.container_registry_url)}/optional-image-name:tag
#{escape_once(@project.container_registry_url)}/optional-name/optional-image-name:tag