|
|
|
@ -240,7 +240,7 @@ module ApplicationHelper
|
|
|
|
|
container = []
|
|
|
|
|
mirror_repositories.each do |mr|
|
|
|
|
|
if mr.name.present?
|
|
|
|
|
container << {:image => mr.name, :cpuLimit => mr.cpu_limit, :memoryLimit => "#{mr.memory_limit}M"}
|
|
|
|
|
container << {:image => mr.name, :cpuLimit => mr.cpu_limit, :memoryLimit => "#{mr.memory_limit}M", :type => mr.try(:main_type) == "1" ? "main" : "sub"}
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
return container.to_json
|
|
|
|
|