public class DockerHostSshDriver extends brooklyn.entity.basic.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,
brooklyn.location.basic.SshMachineLocation machine) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildImage(String dockerFile,
String name)
Build a Docker image from the given Dockerfile.
|
void |
configureSecurityGroups() |
void |
customize() |
String |
deployArchive(String url) |
Integer |
getDockerPort() |
String |
getEpelRelease() |
protected Collection<org.jclouds.net.domain.IpPermission> |
getIpPermissions() |
Map<String,String> |
getShellEnvironment() |
String |
getStorageOpts() |
String |
getVersion() |
void |
install() |
boolean |
isRunning() |
void |
launch() |
String |
layerSshableImageOn(String name,
String tag)
Build an SSHable Docker image that is based from an image with the given name.
|
void |
preInstall() |
void |
stop() |
checkNoHostnameBug, copyInstallResources, copyResource, copyResource, createDirectory, execute, execute, execute, getAddress, getDownloadFilename, getDownloadFileSuffix, getExpandedInstallDir, getHostname, getInstallDir, getInstallLabelExtraSalt, getLocation, getMachine, getPortsUsed, getRunDir, getSshFlags, getSubnetAddress, getSubnetHostname, newScript, newScript, runPostInstallCommand, runPostLaunchCommand, runPreInstallCommand, runPreLaunchCommand, setExpandedInstallDir, setInstallDir, setInstallLabel, setRunDir, setupcopyPreInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, doFullStartOnRestart, getEntity, getEntityVersionLabel, getEntityVersionLabel, getResource, getResourceAsString, kill, postLaunch, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, start, waitForConfigKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DockerHostSshDriver(DockerHostImpl entity, brooklyn.location.basic.SshMachineLocation machine)
public Integer getDockerPort()
getDockerPort in interface DockerHostDriverpublic String buildImage(String dockerFile, String name)
Copies the Dockerfile to the host in the name folder, and
uses brooklyn/name for the repository. The returned ID is
required to start a container using the jclouds API.
buildImage in interface DockerHostDriverDockerHost.createSshableImage(String, String)public String layerSshableImageOn(String name, String tag)
layerSshableImageOn in interface DockerHostDrivername - e.g. tomcat:8.0public String getEpelRelease()
public String getStorageOpts()
public String deployArchive(String url)
deployArchive in interface DockerHostDriverpublic void configureSecurityGroups()
configureSecurityGroups in interface DockerHostDriverprotected Collection<org.jclouds.net.domain.IpPermission> getIpPermissions()
public void preInstall()
preInstall in class brooklyn.entity.basic.AbstractSoftwareProcessDriverpublic void install()
install in class brooklyn.entity.basic.AbstractSoftwareProcessDriverpublic String getVersion()
getVersion in class brooklyn.entity.basic.AbstractSoftwareProcessDriverpublic void customize()
customize in class brooklyn.entity.basic.AbstractSoftwareProcessDriverpublic boolean isRunning()
isRunning in interface brooklyn.entity.basic.SoftwareProcessDriverpublic void stop()
stop in interface brooklyn.entity.basic.SoftwareProcessDriverstop in class brooklyn.entity.basic.AbstractSoftwareProcessDriverpublic void launch()
launch in class brooklyn.entity.basic.AbstractSoftwareProcessDriverCopyright © 2015. All rights reserved.