BigW Consortium Gitlab

Commit 2afae7ea by Kamil Trzcinski

Use Container Images instead of Images

parent 7731bb59
- header_title project_title(@project, "Images", project_images_path(@project)) - header_title project_title(@project, "Container Images", project_images_path(@project))
- 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment