> + .id("")
> + .ram(container.getConfig().getMemory())
> + .processor(new
> Processor(container.getConfig().getCpuShares(),
> container.getConfig().getCpuShares()))
> + .build());
> + // TODO Set up location properly
> + LocationBuilder locationBuilder = new LocationBuilder();
> + locationBuilder.description("");
> + locationBuilder.id("");
> + locationBuilder.scope(LocationScope.HOST);
> + builder.location(locationBuilder.build());
> + builder.status(toPortableStatus.apply(container.getState()));
> + builder.imageId(container.getImage());
> + builder.loginPort(getLoginPort(container));
> + builder.publicAddresses(getPublicIpAddresses());
> + builder.privateAddresses(getPrivateIpAddresses(container));
> +
> builder.operatingSystem(OperatingSystem.builder().description("linux").family(OsFamily.LINUX).build());
Could you be more precise here and populate the OperatingSystem from the Image,
to have the proper details of the distribution, etc?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12936896