com.github.dockerjava.core.command
Class BuildImageCmdImpl
java.lang.Object
com.github.dockerjava.core.command.AbstrDockerCmd<BuildImageCmd,InputStream>
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
Methods inherited from interface com.github.dockerjava.api.command.DockerCmd |
exec |
BuildImageCmdImpl
public BuildImageCmdImpl(BuildImageCmd.Exec exec,
File dockerFolder)
BuildImageCmdImpl
public BuildImageCmdImpl(BuildImageCmd.Exec exec,
InputStream tarInputStream)
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.