Revision dba2e433
Added by Dmitri Dolguikh about 8 years ago
app/models/foreman_docker/docker.rb | ||
---|---|---|
24 | 24 |
16 * 1024 * 1024 * 1024 |
25 | 25 |
end |
26 | 26 |
|
27 |
def max_cpu_count |
|
28 |
::Docker.info['NCPU'] || 1 |
|
29 |
end |
|
30 |
|
|
27 | 31 |
def available_images |
28 | 32 |
client.images.all |
29 | 33 |
end |
Also available in: Unified diff
fixes #8784: defines max_cpu_count for docker compute resource