public class DockerHostSshDriver extends org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessSshDriver implements DockerHostDriver
CHECK_RUNNING, CUSTOMIZING, DEBUG, IGNORE_ENTITY_SSH_FLAGS, INSTALL_INCOMPLETE, INSTALLING, KILLING, LAUNCHING, log, logSsh, NON_STANDARD_LAYOUT, PID_FILENAME, PROCESS_OWNER, resolver, RESTARTING, STOPPING, USE_PID_FILE, VALID_FLAGS| Constructor and Description |
|---|
DockerHostSshDriver(DockerHostImpl entity,
org.apache.brooklyn.location.ssh.SshMachineLocation machine) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildImage(String dockerfile,
com.google.common.base.Optional<String> entrypoint,
com.google.common.base.Optional<String> contextArchive,
String name,
boolean useSsh,
Map<String,Object> substitutions)
Build a Docker image from the given Dockerfile and optional entrypoint script.
|
void |
customize() |
String |
deployArchive(String url) |
Integer |
getDockerPort() |
String |
getEpelRelease() |
String |
getVersion() |
void |
install() |
boolean |
isRunning() |
void |
launch() |
String |
layerSshableImageOn(String fullyQualifiedImageName)
Build an SSHable Docker image that is based from an image with the given name.
|
void |
stop() |
checkNoHostnameBug, copyInstallResources, copyResource, copyResource, createDirectory, execute, execute, execute, getAddress, getExpandedInstallDir, getHostname, getInstallDir, getInstallLabelExtraSalt, getLocation, getMachine, getPortsUsed, getRunDir, getShellEnvironment, getSshFlags, getSubnetAddress, getSubnetHostname, newScript, newScript, prepare, runPostCustomizeCommand, runPostInstallCommand, runPostLaunchCommand, runPreCustomizeCommand, runPreInstallCommand, runPreLaunchCommand, setExpandedInstallDir, setInstallDir, setInstallLabel, setRunDir, setupcopyPreInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, doFullStartOnRestart, getArchiveNameFormat, getEntity, getResource, getResourceAsString, kill, postLaunch, preInstall, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, start, waitForConfigKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DockerHostSshDriver(DockerHostImpl entity, org.apache.brooklyn.location.ssh.SshMachineLocation machine)
public Integer getDockerPort()
getDockerPort in interface DockerHostDriverpublic String buildImage(String dockerfile, com.google.common.base.Optional<String> entrypoint, com.google.common.base.Optional<String> contextArchive, String name, boolean useSsh, Map<String,Object> substitutions)
Copies the Dockerfile and script to the host in the name folder, and
uses brooklyn/name for the registry. The returned ID is required to
start a container using the jclouds API.
buildImage in interface DockerHostDriverDockerHost#createSshableImage(String, String)public String layerSshableImageOn(String fullyQualifiedImageName)
layerSshableImageOn in interface DockerHostDriverfullyQualifiedImageName - e.g. quay.io/graemem/repo/tomcat:8.0public String getEpelRelease()
public String deployArchive(String url)
deployArchive in interface DockerHostDriverpublic void install()
install in class org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessDriverpublic String getVersion()
getVersion in class org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessDriverpublic void customize()
customize in class org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessDriverpublic boolean isRunning()
isRunning in interface org.apache.brooklyn.entity.software.base.SoftwareProcessDriverpublic void stop()
stop in interface org.apache.brooklyn.entity.software.base.SoftwareProcessDriverstop in class org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessDriverpublic void launch()
launch in class org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessDriverCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.