public class DockerJcloudsLocation extends JcloudsLocation
This adds special support for default Docker images. If the image description matches our
image regexes, then auto-generate a password and pass that in as
BROOKLYN_ROOT_PASSWORD
when launching the container. That will then be used as the
RunScriptOptions.getLoginPassword()
.
Also, if no image is specified then this will set the default to "brooklyncentral/centos:7" (see https://hub.docker.com/r/brooklyncentral/centos/).
JcloudsLocation.CustomizeTemplateOptions
AbstractLocation.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.String> |
DEFAULT_IMAGE_DESCRIPTION_REGEX |
static ConfigKey<java.lang.Boolean> |
INJECT_LOGIN_CREDENTIAL |
SUPPORTED_TEMPLATE_BUILDER_PROPERTIES, SUPPORTED_TEMPLATE_OPTIONS_PROPERTIES
PARENT_LOCATION, TEMPORARY_LOCATION
COMMON_USER_NAMES_TO_TRY, ROOT_ALIASES, ROOT_USERNAME
COMPUTE_SERVICE_MODULES, COMPUTE_SERVICE_REGISTRY, CONNECTIVITY_RESOLVER, CUSTOM_CREDENTIALS, IMAGE_CHOOSER, JCLOUDS_LOCATION_CUSTOMIZER, JCLOUDS_LOCATION_CUSTOMIZER_TYPE, JCLOUDS_LOCATION_CUSTOMIZERS, JCLOUDS_LOCATION_CUSTOMIZERS_SUPPLIER_TYPE, LINK_CONTEXT, OS_FAMILY, OS_FAMILY_OVERRIDE, OS_VERSION_REGEX, PORT_FORWARDER, TEMPLATE_BUILDER
AUTO_ASSIGN_FLOATING_IP, AUTO_GENERATE_KEYPAIRS, CLOUD_PROVIDER, CUSTOM_MACHINE_SETUP_SCRIPT_URL, CUSTOM_MACHINE_SETUP_SCRIPT_URL_LIST, CUSTOM_MACHINE_SETUP_SCRIPT_VARS, CUSTOM_TEMPLATE_OPTIONS_SCRIPT_CONTENTS, DEFAULT_IMAGE_ID, DISABLE_ROOT_AND_PASSWORD_SSH, DONT_CREATE_USER, DONT_REQUIRE_TTY_FOR_SUDO, EXTRA_PUBLIC_KEY_DATA_TO_AUTH, EXTRA_PUBLIC_KEY_URLS_TO_AUTH, GENERATE_HOSTNAME, GRANT_USER_SUDO, GROUP_ID, HARDWARE_ID, IMAGE_DESCRIPTION_REGEX, IMAGE_ID, IMAGE_NAME_REGEX, INCLUDE_BROOKLYN_USER_METADATA, JCLOUDS_KEY_ENDPOINT, JCLOUDS_KEY_USERNAME, KEY_PAIR, LOCAL_TEMP_DIR, LOGIN_USER, LOGIN_USER_PASSWORD, LOGIN_USER_PRIVATE_KEY_DATA, LOGIN_USER_PRIVATE_KEY_FILE, LOOKUP_AWS_HOSTNAME, MACHINE_CREATE_ATTEMPTS, MACHINE_CREATION_SEMAPHORE, MACHINE_DELETION_SEMAPHORE, MAP_DEV_RANDOM_TO_DEV_URANDOM, MAX_CONCURRENT_MACHINE_CREATIONS, MAX_CONCURRENT_MACHINE_DELETIONS, NETWORK_NAME, OPEN_IPTABLES, OVERRIDE_RAM, PORT_FORWARDING_MANAGER, RUN_AS_ROOT, SECURITY_GROUPS, STOP_IPTABLES, STRING_TAGS, TEMPLATE_OPTIONS, TEMPLATE_SPEC, USE_JCLOUDS_SSH_INIT, USE_MACHINE_PUBLIC_ADDRESS_AS_PRIVATE_ADDRESS, USE_PORT_FORWARDING, USER_METADATA_MAP, USER_METADATA_STRING
ACCESS_CREDENTIAL, ACCESS_IDENTITY, ADDITIONAL_INBOUND_PORTS, CALLER_CONTEXT, CLOUD_AVAILABILITY_ZONE_ID, CLOUD_ENDPOINT, CLOUD_REGION_ID, DESTROY_ON_FAILURE, DOMAIN_NAME, EXTENSION, INBOUND_PORTS, LEGACY_PRIVATE_KEY_DATA, LEGACY_PRIVATE_KEY_FILE, LEGACY_PRIVATE_KEY_PASSPHRASE, LEGACY_PUBLIC_KEY_DATA, LEGACY_PUBLIC_KEY_FILE, LOG_CREDENTIALS, MACHINE_LOCATION_CUSTOMIZERS, MIN_CORES, MIN_DISK, MIN_RAM, OAUTH_ENDPOINT, OS_64_BIT, PASSWORD, POLL_FOR_FIRST_REACHABLE_ADDRESS, POLL_FOR_FIRST_REACHABLE_ADDRESS_PREDICATE, POLL_FOR_FIRST_REACHABLE_ADDRESS_PREDICATE_TYPE, PRIVATE_KEY_DATA, PRIVATE_KEY_FILE, PRIVATE_KEY_PASSPHRASE, PUBLIC_KEY_DATA, PUBLIC_KEY_FILE, USER, VM_NAME_ALLOWED_CHARACTERS, VM_NAME_MAX_LENGTH, VM_NAME_SALT_LENGTH, WAIT_FOR_SSHABLE, WAIT_FOR_WINRM_AVAILABLE
FINAL_SPEC, NAMED_SPEC_NAME, ORIGINAL_SPEC
Constructor and Description |
---|
DockerJcloudsLocation() |
Modifier and Type | Method and Description |
---|---|
org.jclouds.compute.domain.Template |
buildTemplate(org.jclouds.compute.ComputeService computeService,
ConfigBag config,
java.util.Collection<JcloudsLocationCustomizer> customizers) |
asFile, buildTemplate, configure, fileAsString, getAllSupportedProperties, getComputeService, getComputeService, getComputeService, getCredential, getCustomizers, getEndpoint, getIdentity, getLocationNetworkInfoCustomizer, getMachineMetadata, getProvider, getProvisioningFlags, getRegion, getUser, init, isLocationFirewalldEnabled, isWindows, isWindows, isWindows, killMachine, killMachine, listMachines, newPersistenceObjectStore, newSubLocation, newSubLocation, obtain, obtain, obtain, obtain, rebind, registerMachine, registerMachine, release, resumeMachine, setDefaultImageId, setTagMapping, suspendMachine, toString, toStringNice, toVerboseString
addChild, addExtension, config, containsLocation, equals, getChildren, getConfig, getConfig, getDisplayName, getExtension, getHostGeoInfo, getLocationTypeInternal, getParent, getRebindSupport, hasExtension, hashCode, isManaged, onManagementStarted, onManagementStopped, relations, removeChild, setDisplayName, setHostGeoInfo, setManagementContext, setParent, setParent, subscriptions, toMetadataRecord
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, getManagementContext, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId, tags
containsLocation, getChildren, getConfig, getDisplayName, getExtension, getId, getParent, hasExtension, relations, setParent
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
getManagementContext
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
public static final ConfigKey<java.lang.Boolean> INJECT_LOGIN_CREDENTIAL
public static final ConfigKey<java.lang.String> DEFAULT_IMAGE_DESCRIPTION_REGEX
public org.jclouds.compute.domain.Template buildTemplate(org.jclouds.compute.ComputeService computeService, ConfigBag config, java.util.Collection<JcloudsLocationCustomizer> customizers)
buildTemplate
in class JcloudsLocation