com.cloudbees.jenkins.plugins.okidocki
Class Docker

java.lang.Object
  extended by com.cloudbees.jenkins.plugins.okidocki.Docker

public class Docker
extends Object

Author:
Nicolas De Loof

Constructor Summary
Docker(hudson.Launcher launcher, hudson.model.TaskListener listener)
           
 
Method Summary
 void buildImage(hudson.FilePath workspace, String tag)
           
 boolean hasImage(String image)
           
 void kill(String container)
           
 boolean pullImage(String image)
           
 String runDetached(String image, String workdir, Map<String,String> volumes, hudson.EnvVars environment, String user, String... command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Docker

public Docker(hudson.Launcher launcher,
              hudson.model.TaskListener listener)
Method Detail

hasImage

public boolean hasImage(String image)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException

pullImage

public boolean pullImage(String image)
                  throws IOException,
                         InterruptedException
Throws:
IOException
InterruptedException

buildImage

public void buildImage(hudson.FilePath workspace,
                       String tag)
                throws IOException,
                       InterruptedException
Throws:
IOException
InterruptedException

kill

public void kill(String container)
          throws IOException,
                 InterruptedException
Throws:
IOException
InterruptedException

runDetached

public String runDetached(String image,
                          String workdir,
                          Map<String,String> volumes,
                          hudson.EnvVars environment,
                          String user,
                          String... command)
                   throws IOException,
                          InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2004-2014. All Rights Reserved.