public abstract class DockerDriver extends Object implements Closeable
Implementation is responsible to adapt docker infrastructure APIs
| Constructor and Description |
|---|
DockerDriver() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
buildDockerfile(hudson.model.TaskListener listener,
String dockerfilePath,
String tag,
boolean pull) |
abstract boolean |
checkImageExists(hudson.model.TaskListener listener,
String image) |
abstract String |
createVolume(hudson.model.TaskListener listener) |
abstract hudson.Proc |
execInContainer(hudson.model.TaskListener listener,
String containerId,
hudson.Launcher.ProcStarter starter) |
abstract boolean |
hasContainer(hudson.model.TaskListener listener,
String id) |
abstract boolean |
hasVolume(hudson.model.TaskListener listener,
String name) |
abstract Container |
launchBuildContainer(hudson.model.TaskListener listener,
String image,
Container remotingContainer,
List<Hint> hints) |
abstract Container |
launchRemotingContainer(hudson.model.TaskListener listener,
String image,
String workdir,
DockerComputer computer) |
abstract Container |
launchSideContainer(hudson.model.TaskListener listener,
String image,
Container remotingContainer,
List<Hint> hints) |
abstract void |
pullImage(hudson.model.TaskListener listener,
String image) |
abstract void |
removeContainer(hudson.model.TaskListener listener,
Container instance) |
abstract String |
serverVersion(hudson.model.TaskListener listener)
Return server version string, used actually to check connectivity with backend
|
public abstract boolean hasVolume(hudson.model.TaskListener listener,
String name)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract String createVolume(hudson.model.TaskListener listener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract boolean hasContainer(hudson.model.TaskListener listener,
String id)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract Container launchRemotingContainer(hudson.model.TaskListener listener, String image, String workdir, DockerComputer computer) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract Container launchBuildContainer(hudson.model.TaskListener listener, String image, Container remotingContainer, List<Hint> hints) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract Container launchSideContainer(hudson.model.TaskListener listener, String image, Container remotingContainer, List<Hint> hints) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract hudson.Proc execInContainer(hudson.model.TaskListener listener,
String containerId,
hudson.Launcher.ProcStarter starter)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract void removeContainer(hudson.model.TaskListener listener,
Container instance)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract void pullImage(hudson.model.TaskListener listener,
String image)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract boolean checkImageExists(hudson.model.TaskListener listener,
String image)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract void buildDockerfile(hudson.model.TaskListener listener,
String dockerfilePath,
String tag,
boolean pull)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract String serverVersion(hudson.model.TaskListener listener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016–2017. All rights reserved.