jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)
Date Fri, 21 Mar 2014 17:19:11 GMT
> +      locationBuilder.description("");
> +      locationBuilder.id("");
> +      locationBuilder.scope(LocationScope.HOST);
> +      nodeMetadataBuilder.location(locationBuilder.build());
> +      // TODO setup hardware and hostname properly
> +      if (container.getStatus() != null) {
> +         nodeMetadataBuilder.status(container.getStatus().contains("Up") ? NodeMetadata.Status.RUNNING
: NodeMetadata.Status.SUSPENDED);
> +      } else {
> +         nodeMetadataBuilder.status(container.getState().isRunning() ? NodeMetadata.Status.RUNNING
: NodeMetadata.Status.SUSPENDED);
> +      }
> +      nodeMetadataBuilder.imageId(container.getImage());
> +      nodeMetadataBuilder.loginPort(getLoginPort(container));
> +      nodeMetadataBuilder.publicAddresses(getPublicIpAddresses());
> +      nodeMetadataBuilder.privateAddresses(getPrivateIpAddresses(container));
> +      nodeMetadataBuilder.operatingSystem(OperatingSystem.builder().description("my
description")
> +                                                                   .family(OsFamily.UNRECOGNIZED)

Unfortunately images don't have much metadata about the OS :(

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r10844965
Mime
View raw message