Set hostname in template options

This commit is contained in:
Andrew Kennedy 2014-10-10 18:51:46 +01:00
parent 0126d322fa
commit 53b225c492
1 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,10 @@ public class DockerComputeServiceAdapter implements
containerConfigBuilder.memory(templateOptions.getMemory().get());
}
if (templateOptions.getHostname().isPresent()) {
containerConfigBuilder.hostname(templateOptions.getHostname().get());
}
if (templateOptions.getCpuShares().isPresent()) {
containerConfigBuilder.cpuShares(templateOptions.getCpuShares().get());
}