BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
_header_title.html.haml
app/views/projects/images/_header_title.html.haml
+1
-1
index.html.haml
app/views/projects/images/index.html.haml
+20
-8
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