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() |
String |
getPidFile() |
protected Map<String,Integer> |
getPortMap() |
String |
getRepository() |
void |
install() |
boolean |
isRunning() |
void |
launch() |
void |
preInstall() |
void |
stop() |
copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResources, copyTemplate, copyTemplate, copyTemplate, copyTemplates, execute, execute, getAddress, getDownloadFilename, getDownloadFileSuffix, getEntityVersionLabel, getEntityVersionLabel, getExpandedInstallDir, getHostname, getInstallDir, getInstallLabelExtraSalt, getLocation, getMachine, getPortsUsed, getRunDir, getShellEnvironment, getSshFlags, getVersion, newScript, newScript, resources, runPostInstallCommand, runPostLaunchCommand, runPreInstallCommand, runPreLaunchCommand, setExpandedInstallDir, setInstallDir, setInstallLabel, setRunDir, setupdoFullStartOnRestart, getEntity, 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 getRepository()
getRepository 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 getEpelRelease()
public 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 preInstall()
preInstall in class brooklyn.entity.basic.AbstractSoftwareProcessDriverpublic void install()
install in class brooklyn.entity.basic.AbstractSoftwareProcessDriverpublic void customize()
customize in class brooklyn.entity.basic.AbstractSoftwareProcessDriverpublic String deployArchive(String url)
deployArchive in interface DockerHostDriverpublic void configureSecurityGroups()
configureSecurityGroups in interface DockerHostDriverprotected Collection<org.jclouds.net.domain.IpPermission> getIpPermissions()
public String getPidFile()
public void launch()
launch in class brooklyn.entity.basic.AbstractSoftwareProcessDriverCopyright © 2014. All rights reserved.