fix(core): update

This commit is contained in:
Philipp Kunz 2019-11-19 18:42:15 +00:00
parent 5aa10653b6
commit 959d7aaed1

View File

@ -113,8 +113,14 @@ export class DockerService {
}
// lets configure limits
const memoryLimitMB =
serviceCreationDescriptor.resources && serviceCreationDescriptor.resources.memorySizeMB
? serviceCreationDescriptor.resources.memorySizeMB
: 1000;
const limits = {
MemoryBytes: 1000 * 1000000
MemoryBytes: memoryLimitMB * 1000000
};
if (serviceCreationDescriptor.resources) {