Project

General

Profile

Download (1.24 KB) Statistics
| Branch: | Tag: | Revision:

foreman_docker / app / views / containers / steps / configuration.html.erb @ bc82d5d5

1
<%= render :layout => 'title', :locals => { :step => 3 } do %>
2
  <%= form_for @docker_container_wizard_states_configuration, :url => wizard_path, :method => :put do |f| %>
3
    <h3><%= _("Basic options") %></h3>
4
    <%= text_f f, :name,       :size => 'col-md-4' %>
5
    <%= text_f f, :command,    :size => 'col-md-4' %>
6
    <%= text_f f, :entrypoint, :size => 'col-md-4', :placeholder => '/bin/sh -c by default' %>
7
    <hr>
8
    <h3><%= _("Compute options") %></h3>
9
    <%= text_f f, :cpu_set, :class => "col-md-2", :label => _('CPU sets'),
10
      :placeholder => '0-2,16 represents CPUs 0, 1, 2, and 16.',
11
      :help_block => link_to(_("learn more about CPU sets"), 'http://docs.fedoraproject.org/en-US/Fedora/17/html/Resource_Management_Guide/sec-cpuset.html') %>
12
    <%= text_f f, :cpu_shares, :class => "col-md-2", :label => _('CPU shares'),
13
      :placeholder => 'relative share of CPU time in cgroup',
14
      :help_block => link_to(_("learn more about CPU shares"), 'http://docs.fedoraproject.org/en-US/Fedora/17/html/Resource_Management_Guide/sec-cpu.html') %>
15
    <%= text_f f, :memory, :class => "col-md-2", :label => _('Memory'), :placeholder => '512m limits container memory usage to 512 MB' %>
16
    <%= render :partial => 'form_buttons' %>
17
  <% end %>
18
<% end %>