summaryrefslogtreecommitdiff
path: root/app/views/projects/registry/repositories/index.html.haml
blob: 12a5778fed8145d0e6c2bbf4d5ed9e0b872b07b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
- page_title "Container Registry"

%section
  .settings-header
    %h4
      = page_title
    %p
      = s_('ContainerRegistry|With the Docker Container Registry integrated into GitLab, every project can have its own space to store its Docker images.')
    %p.append-bottom-0
      = succeed '.' do
        = 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) } }

      = page_specific_javascript_bundle_tag('common_vue')
      = page_specific_javascript_bundle_tag('registry_list')

  .row.prepend-top-10
    .col-lg-12
      .panel.panel-default
        .panel-heading
          %h4.panel-title
            = s_('ContainerRegistry|How to use the Container Registry')
        .panel-body
          %p
            = _('First log in to GitLab’s Container Registry using your GitLab username and password. If you have').html_safe
            = link_to _('2FA enabled'), help_page_path('user/profile/account/two_factor_authentication'), target: '_blank'
            = _('you need to use a')
            = succeed ':' do
              = link_to _('personal access token'), help_page_path('user/profile/account/two_factor_authentication', anchor: 'personal-access-tokens'), target: '_blank'
          %pre
            docker login #{Gitlab.config.registry.host_port}
          %br
          %p
            = _('Once you log in, you’re free to create and upload a container image using the common').html_safe
            %code
              = _('build')
            = _('and')
            %code push
            = _('commands:')
          %pre
            :plain
              docker build -t #{escape_once(@project.container_registry_url)} .
              docker push #{escape_once(@project.container_registry_url)}
          %hr
          %h5.prepend-top-default
            = _('Use different image names')
          %p.light
            = _('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