com.github.dockerjava.client.command
Class BuildImgCmd

java.lang.Object
  extended by com.github.dockerjava.client.command.AbstrDockerCmd<BuildImgCmd,com.sun.jersey.api.client.ClientResponse>
      extended by com.github.dockerjava.client.command.BuildImgCmd
All Implemented Interfaces:
DockerCmd<com.sun.jersey.api.client.ClientResponse>

public class BuildImgCmd
extends AbstrDockerCmd<BuildImgCmd,com.sun.jersey.api.client.ClientResponse>

Build an image from Dockerfile. TODO: http://docs.docker.com/reference/builder/#dockerignore


Field Summary
 
Fields inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
baseResource
 
Constructor Summary
BuildImgCmd(File dockerFolder)
           
BuildImgCmd(InputStream tarInputStream)
           
 
Method Summary
protected  File buildDockerFolderTar()
           
protected  com.sun.jersey.api.client.ClientResponse callDocker(InputStream dockerFolderTarInputStream)
           
 File getDockerFolder()
           
 String getTag()
           
 boolean hasNoCacheEnabled()
           
 boolean hasRemoveEnabled()
           
protected  com.sun.jersey.api.client.ClientResponse impl()
           
 boolean isQuiet()
           
 String toString()
           
 BuildImgCmd withNoCache()
           
 BuildImgCmd withNoCache(boolean noCache)
           
 BuildImgCmd withQuiet(boolean quiet)
           
 BuildImgCmd withRemove(boolean rm)
           
 BuildImgCmd withTag(String tag)
           
 
Methods inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
exec, withBaseResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildImgCmd

public BuildImgCmd(File dockerFolder)

BuildImgCmd

public BuildImgCmd(InputStream tarInputStream)
Method Detail

withTag

public BuildImgCmd withTag(String tag)

getDockerFolder

public File getDockerFolder()

getTag

public String getTag()

hasNoCacheEnabled

public boolean hasNoCacheEnabled()

hasRemoveEnabled

public boolean hasRemoveEnabled()

isQuiet

public boolean isQuiet()

withNoCache

public BuildImgCmd withNoCache()

withNoCache

public BuildImgCmd withNoCache(boolean noCache)

withRemove

public BuildImgCmd withRemove(boolean rm)

withQuiet

public BuildImgCmd withQuiet(boolean quiet)

toString

public String toString()
Overrides:
toString in class Object

impl

protected com.sun.jersey.api.client.ClientResponse impl()

callDocker

protected com.sun.jersey.api.client.ClientResponse callDocker(InputStream dockerFolderTarInputStream)

buildDockerFolderTar

protected File buildDockerFolderTar()


Copyright © 2014. All rights reserved.