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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
6c63520e
Commit
6c63520e
authored
Sep 19, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes 2 column layout. Adds i18n support
parent
51c9f8b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
55 deletions
+47
-55
app/views/projects/registry/repositories/index.html.haml
app/views/projects/registry/repositories/index.html.haml
+47
-55
No files found.
app/views/projects/registry/repositories/index.html.haml
View file @
6c63520e
-
page_title
"Container Registry"
.row.prepend-top-default.append-bottom-default
.
col-lg-3
%h4
.prepend-top-0
%section
.
settings-header
%h4
=
page_title
%p
With the Docker Container Registry integrated into GitLab, every project
can have its own space to store its Docker images.
=
_
(
'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
Learn more about
=
link_to
'Container Registry'
,
help_page_path
(
'user/project/container_registry'
),
target:
'_blank'
=
link_to
_
(
'Container Registry'
),
help_page_path
(
'user/project/container_registry'
),
target:
'_blank'
.row
.col-lg-12
.panel.panel-default
.panel-heading
%h4
.panel-title
=
_
(
'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'
)
=
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"
)
%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
)
}
.col-lg-9
.panel.panel-default
.panel-heading
%h4
.panel-title
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
=
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
%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
%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
#js-vue-registry-images
{
data:
{
endpoint:
project_container_registry_index_path
(
@project
,
format: :json
)}}
.row
.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'
)
-# - if @images.blank?
-# %p.settings-message.text-center.append-bottom-default
-# No container images stored for this project. Add one by following the
-# instructions above.
-# - else
-# = render partial: 'image', collection: @images
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'registry_list'
)
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