All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dockerjava.api.command.BuildImageCmd Maven / Gradle / Ivy

There is a newer version: 3.4.1
Show newest version
package com.github.dockerjava.api.command;

import com.github.dockerjava.api.model.EventStreamItem;
import com.github.dockerjava.api.model.PushEventStreamItem;

import java.io.IOException;
import java.io.InputStream;

/**
 * 
 * Build an image from Dockerfile.
 * 
 * TODO: http://docs.docker.com/reference/builder/#dockerignore
 * 
 */
public interface BuildImageCmd extends DockerCmd{

	public BuildImageCmd withTag(String tag);

	public InputStream getTarInputStream();

	public String getTag();

	public boolean hasNoCacheEnabled();

	public boolean hasRemoveEnabled();

	public boolean isQuiet();
	
	public BuildImageCmd withTarInputStream(InputStream tarInputStream);

	public BuildImageCmd withNoCache();

	public BuildImageCmd withNoCache(boolean noCache);
	
	public BuildImageCmd withRemove();

	public BuildImageCmd withRemove(boolean rm);
	
	public BuildImageCmd withQuiet();

	public BuildImageCmd withQuiet(boolean quiet);
	
	public static interface Exec extends DockerCmdExec {
	}

  public static abstract class Response extends InputStream {
    public abstract Iterable getItems() throws IOException;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy