public class DockerDriver extends Object implements Closeable
| Constructor and Description |
|---|
DockerDriver(org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint dockerHost,
hudson.model.Item context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createBuildContainer(hudson.Launcher launcher,
ContainerInstance buildContainer,
ContainerInstance remotingContainer,
hudson.Launcher.ProcStarter starter) |
ContainerInstance |
createRemotingContainer(hudson.Launcher launcher,
String image) |
protected void |
getFileContent(hudson.Launcher launcher,
String containerId,
String filename,
OutputStream outputStream) |
boolean |
hasContainer(hudson.Launcher launcher,
String id) |
protected void |
injectJenkinsUnixGroup(hudson.Launcher launcher,
String containerId) |
protected void |
injectJenkinsUnixUser(hudson.Launcher launcher,
String containerId) |
void |
launchSideContainer(hudson.Launcher launcher,
ContainerInstance instance,
ContainerInstance remotingContainer) |
protected int |
putFileContent(hudson.Launcher launcher,
String containerId,
String path,
String filename,
byte[] content) |
int |
removeContainer(hudson.Launcher launcher,
ContainerInstance instance) |
hudson.Proc |
startContainer(hudson.Launcher launcher,
String containerId,
OutputStream outputStream) |
public DockerDriver(org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint dockerHost,
hudson.model.Item context)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean hasContainer(hudson.Launcher launcher,
String id)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic ContainerInstance createRemotingContainer(hudson.Launcher launcher, String image) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void createBuildContainer(hudson.Launcher launcher,
ContainerInstance buildContainer,
ContainerInstance remotingContainer,
hudson.Launcher.ProcStarter starter)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected void injectJenkinsUnixGroup(hudson.Launcher launcher,
String containerId)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected void injectJenkinsUnixUser(hudson.Launcher launcher,
String containerId)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected void getFileContent(hudson.Launcher launcher,
String containerId,
String filename,
OutputStream outputStream)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected int putFileContent(hudson.Launcher launcher,
String containerId,
String path,
String filename,
byte[] content)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic hudson.Proc startContainer(hudson.Launcher launcher,
String containerId,
OutputStream outputStream)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int removeContainer(hudson.Launcher launcher,
ContainerInstance instance)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void launchSideContainer(hudson.Launcher launcher,
ContainerInstance instance,
ContainerInstance remotingContainer)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.