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
IOException
InterruptedException
public abstract String createVolume(hudson.model.TaskListener listener) throws IOException, InterruptedException
IOException
InterruptedException
public abstract boolean hasContainer(hudson.model.TaskListener listener, String id) throws IOException, InterruptedException
IOException
InterruptedException
public abstract Container launchRemotingContainer(hudson.model.TaskListener listener, String image, String workdir, DockerComputer computer) throws IOException, InterruptedException
IOException
InterruptedException
public abstract Container launchBuildContainer(hudson.model.TaskListener listener, String image, Container remotingContainer, List<Hint> hints) throws IOException, InterruptedException
IOException
InterruptedException
public abstract Container launchSideContainer(hudson.model.TaskListener listener, String image, Container remotingContainer, List<Hint> hints) throws IOException, InterruptedException
IOException
InterruptedException
public abstract hudson.Proc execInContainer(hudson.model.TaskListener listener, String containerId, hudson.Launcher.ProcStarter starter) throws IOException, InterruptedException
IOException
InterruptedException
public abstract void removeContainer(hudson.model.TaskListener listener, Container instance) throws IOException, InterruptedException
IOException
InterruptedException
public abstract void pullImage(hudson.model.TaskListener listener, String image) throws IOException, InterruptedException
IOException
InterruptedException
public abstract boolean checkImageExists(hudson.model.TaskListener listener, String image) throws IOException, InterruptedException
IOException
InterruptedException
public abstract void buildDockerfile(hudson.model.TaskListener listener, String dockerfilePath, String tag, boolean pull) throws IOException, InterruptedException
IOException
InterruptedException
public abstract String serverVersion(hudson.model.TaskListener listener) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2016–2017. All rights reserved.