com.github.dockerjava.client.command
Class BuildImgCmd
java.lang.Object
com.github.dockerjava.client.command.AbstrDockerCmd<BuildImgCmd,com.sun.jersey.api.client.ClientResponse>
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
BuildImgCmd
public BuildImgCmd(File dockerFolder)
BuildImgCmd
public BuildImgCmd(InputStream tarInputStream)
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.