> + .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());
unfortunately not, unless we pay an ssh connection to the container. This mean
that we should start a container from that image and extract the needed
details. I've opened an issue https://github.com/dotcloud/docker/issues/5480
but it has been rejected :(
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12953564