com.fitbur.github.dockerjava.api.command.BuildImageCmd Maven / Gradle / Ivy
package com.fitbur.github.dockerjava.api.com.fitburmand;
import com.fitbur.github.dockerjava.api.model.AuthConfigurations;
import com.fitbur.github.dockerjava.api.model.BuildResponseItem;
import javax.annotation.CheckForNull;
import java.io.File;
import java.io.InputStream;
import java.net.URI;
/**
* Build an image from Dockerfile.
*
* TODO: http://docs.docker.com.fitbur/reference/builder/#dockerignore
*
* @see build-image-from-a-dockerfile
*/
public interface BuildImageCmd extends AsyncDockerCmd {
// lib specific
public InputStream getTarInputStream();
public AuthConfigurations getBuildAuthConfigs();
// getters
/**
* "t" in API
*/
@CheckForNull
public String getTag();
/**
* "remote" in API
*/
@CheckForNull
public URI getRemote();
/**
* "nocache" in API
*/
public boolean hasNoCacheEnabled();
/**
* "rm" in API
*/
public boolean hasRemoveEnabled();
/**
* "forcerm" in API
*/
public boolean isForcerm();
@CheckForNull
public Boolean getForcerm();
/**
* "q" in API
*/
public boolean isQuiet();
/**
* "pull" in API
*/
public boolean hasPullEnabled();
@CheckForNull
public String getPathToDockerfile();
@CheckForNull
public Long getMemory();
@CheckForNull
public Long getMemswap();
@CheckForNull
public String getCpushares();
@CheckForNull
public String getCpusetcpus();
// setters
public BuildImageCmd withTag(String tag);
public BuildImageCmd withRemote(URI remote);
public BuildImageCmd withBaseDirectory(File baseDirectory);
public BuildImageCmd withDockerfile(File dockerfile);
public BuildImageCmd withNoCache();
public BuildImageCmd withNoCache(boolean noCache);
public BuildImageCmd withRemove();
public BuildImageCmd withRemove(boolean rm);
public BuildImageCmd withForcerm();
public BuildImageCmd withForcerm(Boolean forcerm);
public BuildImageCmd withQuiet();
public BuildImageCmd withQuiet(boolean quiet);
public BuildImageCmd withPull();
public BuildImageCmd withPull(boolean pull);
public BuildImageCmd withMemory(long memory);
public BuildImageCmd withMemswap(long memswap);
public BuildImageCmd withCpushares(String cpushares);
public BuildImageCmd withCpusetcpus(String cpusetcpus);
// setters lib specific
public BuildImageCmd withBuildAuthConfigs(AuthConfigurations authConfig);
public BuildImageCmd withTarInputStream(InputStream tarInputStream);
public static interface Exec extends DockerCmdAsyncExec {
}
}