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
2afae7ea
Commit
2afae7ea
authored
May 04, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Container Images instead of Images
parent
7731bb59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
app/views/projects/images/_header_title.html.haml
app/views/projects/images/_header_title.html.haml
+1
-1
app/views/projects/images/index.html.haml
app/views/projects/images/index.html.haml
+21
-9
No files found.
app/views/projects/images/_header_title.html.haml
View file @
2afae7ea
-
header_title
project_title
(
@project
,
"Images"
,
project_images_path
(
@project
))
-
header_title
project_title
(
@project
,
"
Container
Images"
,
project_images_path
(
@project
))
app/views/projects/images/index.html.haml
View file @
2afae7ea
-
page_title
"Images"
-
page_title
"
Container
Images"
=
render
"header_title"
=
render
"header_title"
.top-area
.light.prepend-top-default
.nav-controls
%p
A 'container image' is a snapshot of a container.
You can host your 'container images' with GitLab.
%br
To start using container images hosted on GitLab you first need to login:
%pre
%code
docker login
#{
Gitlab
.
config
.
registry
.
host_port
}
%br
Then you are free to create and upload a container images with build and push commands:
%pre
docker build -t
#{
Gitlab
.
config
.
registry
.
host_port
}
/
#{
@project
.
path_with_namespace
}
.
%br
docker push
#{
Gitlab
.
config
.
registry
.
host_port
}
/
#{
@project
.
path_with_namespace
}
.gray-content-block
%hr
A list of Docker Images for this project
%ul
.content-list
%ul
.content-list
-
if
@tags
.
blank?
-
if
@tags
.
blank?
...
@@ -25,15 +37,15 @@
...
@@ -25,15 +37,15 @@
-
@tags
.
each
do
|
tag
|
-
@tags
.
each
do
|
tag
|
%tr
%tr
%td
%td
=
link_to
namespace_project_image_path
(
@project
.
namespace
,
@project
,
tag
.
name
)
do
#{
tag
.
repository
.
name
}
:
#{
tag
.
name
}
#{
tag
.
repository
.
name
}
:
#{
tag
.
name
}
=
clipboard_button
(
clipboard_text:
"docker pull
#{
Gitlab
.
config
.
registry
.
host_port
}
/
#{
tag
.
repository
.
name
}
:
#{
tag
.
name
}
"
)
%td
%td
-
if
layer
=
tag
.
layers
.
first
-
if
layer
=
tag
.
layers
.
first
\##{layer.short_revision}
\##{layer.short_revision}
%td
%td
=
pluralize
(
tag
.
layers
.
size
,
"layer"
)
=
number_to_human_size
(
tag
.
total_size
)
=
number_to_human_size
(
tag
.
total_size
)
·
=
pluralize
(
tag
.
layers
.
size
,
"layer"
)
%td
%td
=
time_ago_in_words
(
tag
.
created_at
)
=
time_ago_in_words
(
tag
.
created_at
)
%td
.content
%td
.content
...
...
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