gitlab-org--gitlab-foss/app/views/projects/images/index.html.haml

58 lines
1.9 KiB
Plaintext
Raw Normal View History

2016-05-04 14:17:35 +00:00
- page_title "Container Images"
2016-04-18 12:14:40 +00:00
= render "header_title"
2016-05-04 14:17:35 +00:00
.light.prepend-top-default
%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}
2016-04-18 12:14:40 +00:00
2016-05-04 14:17:35 +00:00
%hr
2016-04-18 12:14:40 +00:00
%ul.content-list
- if @tags.blank?
%li
.nothing-here-block No images to show
- else
.table-holder
%table.table.builds
%thead
%tr
%th Name
2016-05-04 14:28:01 +00:00
%th Digest
2016-04-18 12:14:40 +00:00
%th Size
%th Created
%th
- @tags.each do |tag|
2016-04-18 12:14:40 +00:00
%tr
%td
2016-05-04 14:17:35 +00:00
#{tag.repository.name}:#{tag.name}
= clipboard_button(clipboard_text: "docker pull #{Gitlab.config.registry.host_port}/#{tag.repository.name}:#{tag.name}")
2016-04-18 12:14:40 +00:00
%td
- if layer = tag.layers.first
2016-05-04 14:28:01 +00:00
%span.has-tooltip(title="#{layer.revision}")
= layer.short_revision
- else
\-
2016-04-18 12:14:40 +00:00
%td
= number_to_human_size(tag.total_size)
2016-05-04 14:17:35 +00:00
·
= pluralize(tag.layers.size, "layer")
2016-04-18 12:14:40 +00:00
%td
= time_ago_in_words(tag.created_at)
2016-04-18 12:14:40 +00:00
%td.content
.controls.hidden-xs.pull-right
= link_to namespace_project_image_path(@project.namespace, @project, tag.name), class: 'btn btn-remove has-tooltip', title: "Remove", data: { confirm: "Are you sure?" }, method: :delete do
2016-04-18 12:14:40 +00:00
= icon("trash cred")