com.github.dockerjava.core.command
Class BuildImageCmdImpl

java.lang.Object
  extended by com.github.dockerjava.core.command.AbstrDockerCmd<BuildImageCmd,InputStream>
      extended by com.github.dockerjava.core.command.BuildImageCmdImpl
All Implemented Interfaces:
BuildImageCmd, DockerCmd<InputStream>

public class BuildImageCmdImpl
extends AbstrDockerCmd<BuildImageCmd,InputStream>
implements BuildImageCmd

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.dockerjava.api.command.BuildImageCmd
BuildImageCmd.Exec
 
Field Summary
 
Fields inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
execution
 
Constructor Summary
BuildImageCmdImpl(BuildImageCmd.Exec exec, File dockerFolder)
           
BuildImageCmdImpl(BuildImageCmd.Exec exec, InputStream tarInputStream)
           
 
Method Summary
protected  InputStream buildDockerFolderTar(File dockerFolder)
           
 String getTag()
           
 InputStream getTarInputStream()
           
 boolean hasNoCacheEnabled()
           
 boolean hasRemoveEnabled()
           
 boolean isQuiet()
           
 String toString()
           
 BuildImageCmdImpl withNoCache()
           
 BuildImageCmdImpl withNoCache(boolean noCache)
           
 BuildImageCmdImpl withQuiet()
           
 BuildImageCmdImpl withQuiet(boolean quiet)
           
 BuildImageCmdImpl withRemove()
           
 BuildImageCmdImpl withRemove(boolean rm)
           
 BuildImageCmdImpl withTag(String tag)
           
 BuildImageCmdImpl withTarInputStream(InputStream tarInputStream)
           
 
Methods inherited from class com.github.dockerjava.core.command.AbstrDockerCmd
exec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.github.dockerjava.api.command.DockerCmd
exec
 

Constructor Detail

BuildImageCmdImpl

public BuildImageCmdImpl(BuildImageCmd.Exec exec,
                         File dockerFolder)

BuildImageCmdImpl

public BuildImageCmdImpl(BuildImageCmd.Exec exec,
                         InputStream tarInputStream)
Method Detail

getTarInputStream

public InputStream getTarInputStream()
Specified by:
getTarInputStream in interface BuildImageCmd

withTarInputStream

public BuildImageCmdImpl withTarInputStream(InputStream tarInputStream)
Specified by:
withTarInputStream in interface BuildImageCmd

withTag

public BuildImageCmdImpl withTag(String tag)
Specified by:
withTag in interface BuildImageCmd

getTag

public String getTag()
Specified by:
getTag in interface BuildImageCmd

hasNoCacheEnabled

public boolean hasNoCacheEnabled()
Specified by:
hasNoCacheEnabled in interface BuildImageCmd

hasRemoveEnabled

public boolean hasRemoveEnabled()
Specified by:
hasRemoveEnabled in interface BuildImageCmd

isQuiet

public boolean isQuiet()
Specified by:
isQuiet in interface BuildImageCmd

withNoCache

public BuildImageCmdImpl withNoCache()
Specified by:
withNoCache in interface BuildImageCmd

withNoCache

public BuildImageCmdImpl withNoCache(boolean noCache)
Specified by:
withNoCache in interface BuildImageCmd

withRemove

public BuildImageCmdImpl withRemove()
Specified by:
withRemove in interface BuildImageCmd

withRemove

public BuildImageCmdImpl withRemove(boolean rm)
Specified by:
withRemove in interface BuildImageCmd

withQuiet

public BuildImageCmdImpl withQuiet()
Specified by:
withQuiet in interface BuildImageCmd

withQuiet

public BuildImageCmdImpl withQuiet(boolean quiet)
Specified by:
withQuiet in interface BuildImageCmd

toString

public String toString()
Overrides:
toString in class Object

buildDockerFolderTar

protected InputStream buildDockerFolderTar(File dockerFolder)


Copyright © 2014. All rights reserved.